From 0ec370fe9f231b75b8e3d8aa7e120ce002f2e568 Mon Sep 17 00:00:00 2001 From: Ivan Ternovtsiy Date: Fri, 20 Mar 2020 13:52:50 +0200 Subject: [PATCH] fix false positive view parameters detection (#2899) --- .../EzPublishCoreBundle/EventListener/SiteAccessListener.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eZ/Bundle/EzPublishCoreBundle/EventListener/SiteAccessListener.php b/eZ/Bundle/EzPublishCoreBundle/EventListener/SiteAccessListener.php index 966e0b5f2f8..2969d751351 100644 --- a/eZ/Bundle/EzPublishCoreBundle/EventListener/SiteAccessListener.php +++ b/eZ/Bundle/EzPublishCoreBundle/EventListener/SiteAccessListener.php @@ -111,7 +111,10 @@ public function onSiteAccessMatch(PostSiteAccessMatchEvent $event) private function getViewParameters($pathinfo) { // No view parameters, get out of here. - if (($vpStart = strpos($pathinfo, '/(')) === false) { + if ( + strpos($pathinfo, ')/') === false + || ($vpStart = strpos($pathinfo, '/(')) === false + ) { return [$pathinfo, [], '']; }