Skip to content

Commit

Permalink
fix false positive view parameters detection (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
ITernovtsii authored Mar 20, 2020
1 parent 0ace03a commit 0ec370f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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, [], ''];
}

Expand Down

1 comment on commit 0ec370f

@andrerom
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.