From 0b9cfcb6db5786052b548c61219afdaddb86936d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Phil=20H=C3=B6fer?= <phil.hoefer@suma-ev.de>
Date: Mon, 24 Jun 2024 09:57:17 +0000
Subject: [PATCH] Ignore Case in Conditional URL Filter

---
 metager/app/Models/Result.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/metager/app/Models/Result.php b/metager/app/Models/Result.php
index 554623d5a..870525ae4 100644
--- a/metager/app/Models/Result.php
+++ b/metager/app/Models/Result.php
@@ -295,7 +295,7 @@ class Result
         if (
             ($this->strippedHost !== "" && (in_array($this->strippedHost, $metager->getDomainBlacklist()) ||
                 in_array($this->strippedLink, $metager->getUrlBlacklist()) ||
-                in_array($this->strippedLink . "|" . app(SearchSettings::class)->q, $metager->getUrlBlacklist())
+                in_array($this->strippedLink . "|" . strtolower(app(SearchSettings::class)->q), $metager->getUrlBlacklist())
                 )
             ) 
         ) {
-- 
GitLab