From 4dd60b0bb91b0b5dc83c3d28ea226985b0faa202 Mon Sep 17 00:00:00 2001 From: bveysseyre Date: Fri, 13 Dec 2024 16:25:41 +0100 Subject: [PATCH] Del @ escape because try & catch + Escape preg + Case insensitive --- Model/RewriteurlRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/RewriteurlRule.php b/Model/RewriteurlRule.php index 4c29c57..cd228b0 100644 --- a/Model/RewriteurlRule.php +++ b/Model/RewriteurlRule.php @@ -51,7 +51,7 @@ protected function isMatchingPath(string $url): bool { if (!empty($this->getValue())) { try { - $match = @preg_match('/' . $this->getValue() . '/', $url); + $match = preg_match('/' . preg_quote($this->getValue(), '/i') . '/', $url); if (false === $match) { Tlog::getInstance()->error('Invalid pattern: ' . $this->getValue());