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
This commit is contained in:
taggon 2011-09-22 11:59:26 +00:00
parent bb1aca2a8b
commit 5a027fbdf5

View file

@ -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);