From cc25088d93d7898dd53adea7927385183a82accc 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() --- 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; }