Skip to content

Commit

Permalink
Change to allow str_pos to match when the exclude term is at the root… (
Browse files Browse the repository at this point in the history
#19979)

* Change to allow str_pos to match when the exclude term is at the root of the path

* updated redirect.php - clearly I was tired with the first pr.
  • Loading branch information
tonypartridge authored and Michael Babker committed Mar 25, 2018
1 parent 136c7eb commit dbd33e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/system/redirect/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private static function doErrorHandling($error)
}
else
{
if (StringHelper::strpos($orgurlRel, $exclude->term))
if (StringHelper::strpos($orgurlRel, $exclude->term) !== false)
{
$skipUrl = true;
break;
Expand Down

0 comments on commit dbd33e5

Please sign in to comment.