From 376dea3ac786e2179ed2d359bd51c32ab5b19d01 Mon Sep 17 00:00:00 2001 From: flyskyko Date: Thu, 6 Sep 2012 07:26:01 +0000 Subject: [PATCH] issue 2355, fixed a bug that does not load widget setting page git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11173 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/template/TemplateHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index 31de9b8f4..48ac871c3 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -187,7 +187,7 @@ class TemplateHandler { $buff = preg_replace('@@s', '', $buff); // replace value of src in img/input/script tag - $buff = preg_replace_callback('/<(?:img|input|script)(?:(?!["\'\/]\s*>).)* src="(?!https?:\/\/|[\/\{])([^"]+)"/is', array($this, '_replacePath'), $buff); + $buff = preg_replace_callback('/<(?:img|input|script)[^<>]*src="(?!https?:\/\/|[\/\{])([^"]+)"[^<>]*>/is', array($this, '_replacePath'), $buff); // replace loop and cond template syntax $buff = $this->_parseInline($buff); @@ -222,7 +222,7 @@ class TemplateHandler { * 4. generate return url, return url use in server side validator * @param array $matches * @return string - **/ + function _compileFormAuthGeneration($matches) { // form ruleset attribute move to hidden tag