From 1fa73f0dc40ee969e0b0c7ce7a23f81c8bb86a01 Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 13 Mar 2012 12:48:15 +0000 Subject: [PATCH] // 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 --- classes/Tools.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Tools.php b/classes/Tools.php index ad4a3d8a0..1efc0e4a7 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -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; }