issue 2369 return origin conde when src value started '${'.

git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@11789 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-10-18 13:48:37 +00:00
parent 61f82d7dd0
commit 170c5c057a

View file

@ -324,8 +324,14 @@ class TemplateHandler {
**/
function _replacePath($match)
{
//return origin conde when src value started '${'.
if(preg_match('@^\${@', $match[1]))
{
return $match[0];
}
//return origin code when src value include variable.
if(preg_match('/^[\'|"]\s*\.\s*\$/', $match[1]))
if(preg_match('@^[\'|"]\s*\.\s*\$@', $match[1]))
{
return $match[0];
}