From 935ab8630acc3b7db60c2d81943f1c216f807d7e Mon Sep 17 00:00:00 2001 From: mohrt Date: Tue, 31 Aug 2004 18:18:36 +0000 Subject: [PATCH] fix preg_quote --- libs/Smarty_Compiler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 6262f735..97f4ed34 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -228,8 +228,8 @@ class Smarty_Compiler extends Smarty { $this->_current_file = $resource_name; $this->_current_line_no = 1; - $ldq = preg_quote($this->left_delimiter, '!'); - $rdq = preg_quote($this->right_delimiter, '!'); + $ldq = preg_quote($this->left_delimiter, '~'); + $rdq = preg_quote($this->right_delimiter, '~'); // run template source through prefilter functions if (count($this->_plugins['prefilter']) > 0) {