Skip to content

Commit

Permalink
Fix matching bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Nov 13, 2023
1 parent 570c00b commit 071bcfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<descriptive locale="fr_FR">
<title>Gérer la réécriture d'url</title>
</descriptive>
<version>2.1.5</version>
<version>2.1.6</version>
<author>
<name>Vincent Lopes, Gilles Bourgeat, Tom Pradat</name>
<email>[email protected], [email protected], [email protected]</email>
Expand Down
2 changes: 1 addition & 1 deletion Model/RewriteurlRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected function isMatchingPath(string $url): bool
{
if (!empty($this->getValue())) {
try {
$match = @preg_match('/'.$this->getValue().'/', $url) === 1;
$match = @preg_match('/'.$this->getValue().'/', $url);

if (false === $match) {
Tlog::getInstance()->error('Invalid pattern: '.$this->getValue());
Expand Down

0 comments on commit 071bcfc

Please sign in to comment.