From 5a027fbdf5bc4aade82e55c2e0eb2032a36df49e Mon Sep 17 00:00:00 2001 From: taggon Date: Thu, 22 Sep 2011 11:59:26 +0000 Subject: [PATCH] Fixed a bug for compiling templates git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9282 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/template/TemplateHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index 88a6dbe8b..e0f47bc55 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -154,7 +154,7 @@ } // replace value of src in img/input/script tag - $buff = preg_replace_callback('/(<(?:img|input|script)(?:->||[^<>])*)\ssrc="(?!https?:\/\/|[\/\{])(.+?)"/is', array($this, '_replacePath'), $buff); + $buff = preg_replace_callback('/(<(?:img|input|script)(?:->|[^<>\-])*)\ssrc="(?!https?:\/\/|[\/\{])(.+?)"/is', array($this, '_replacePath'), $buff); // replace loop and cond template syntax $buff = $this->_parseInline($buff);