diff --git a/.github/workflows/code_quality.yml b/.github/workflows/code_quality.yml index caf9a7a1..be0d3fa9 100644 --- a/.github/workflows/code_quality.yml +++ b/.github/workflows/code_quality.yml @@ -89,12 +89,6 @@ jobs: php: "8.2" composer: "v2" opensearch: "2.5.0" - - - magento: "2.4.6" - php: "8.3" - composer: "v2" - opensearch: "2.5.0" - steps: - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/Model/FrontControllerPlugin.php b/Model/FrontControllerPlugin.php index 769973f1..882072a7 100644 --- a/Model/FrontControllerPlugin.php +++ b/Model/FrontControllerPlugin.php @@ -135,7 +135,7 @@ public function aroundDispatch(FrontControllerInterface $subject, callable $proc return $proceed(...$args); } - $path = strtolower($this->request->getPathInfo()); + $path = strtolower($this->request->getRequestUri()); if ($isRateLimitingEnabled && $this->sensitivePathProtection($path)) { return $this->response; @@ -167,7 +167,8 @@ private function sensitivePathProtection($path) $limit = false; foreach ($limitedPaths as $key => $value) { - if (preg_match('{' . $value->path . '}i', $path) == 1) { + $value->path = str_replace("#", "\#", $value->path); + if (preg_match('#' . $value->path . '#i', $path)) { $limit = true; break; }