From be66f13885b6248c1939038f88600740b3818c8e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 18 Nov 2014 12:28:20 +0000 Subject: [PATCH] fix unknown modifier "n" warning caused by a "/" in replacement --- etemplate/inc/class.bo_merge.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index 9b7b2869a3..631d185b41 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -1359,7 +1359,7 @@ abstract class bo_merge { if (array_key_exists('$$'.$param[4].'$$',$this->replacements)) $param[4] = $this->replacements['$$'.$param[4].'$$']; if (array_key_exists('$$'.$param[3].'$$',$this->replacements)) $param[3] = $this->replacements['$$'.$param[3].'$$']; - $replace = preg_match('/'.$param[2].'/',$this->replacements['$$'.$param[1].'$$']) ? $param[3] : $param[4]; + $replace = preg_match('/'.preg_quote($param[2], '/').'/',$this->replacements['$$'.$param[1].'$$']) ? $param[3] : $param[4]; switch($this->mimetype) { case 'application/vnd.oasis.opendocument.text': // open office