Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
regexp2like function must stripslashes previously escaped chars (via …
Browse files Browse the repository at this point in the history
…preg_quote). Fix #437
  • Loading branch information
cdujeu committed Feb 20, 2014
1 parent 16bb476 commit c0dcfa8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/plugins/auth.sql/class.sqlAuthDriver.php
Expand Up @@ -94,6 +94,7 @@ private static function regexpToLike(&$regexp)
$regexp = rtrim($regexp, "$");
$right = "";
}
$regexp = stripslashes($regexp);
if ($left == "" && $right == "") {
return "= %s";
}
Expand Down

0 comments on commit c0dcfa8

Please sign in to comment.