// Adding characters to escape for an regex in method Tools::pRegexp()

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14072 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2012-03-13 12:48:15 +00:00
parent 60330383c9
commit 1fa73f0dc4
+1 -1
View File
@@ -1832,7 +1832,7 @@ FileETag INode MTime Size
public static function pRegexp($s, $delim)
{
$s = str_replace($delim, '\\'.$delim, $s);
foreach (array('?', '[', ']', '(', ')', '{', '}', '-', '.', '+', '*', '^', '$') as $char)
foreach (array('?', '[', ']', '(', ')', '{', '}', '-', '.', '+', '*', '^', '$', '`', '"', '%') as $char)
$s = str_replace($char, '\\'.$char, $s);
return $s;
}