mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
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:
parent
61f82d7dd0
commit
170c5c057a
1 changed files with 7 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue