예외 경우 추가 (에러 수정)

This commit is contained in:
conory 2016-01-27 19:50:13 +09:00
parent 8caa495073
commit 614cdf3f63

View file

@ -887,7 +887,7 @@ class TemplateHandler
return '$__Context->' . $n[1];
};
return preg_replace_callback('/\$([_a-z0-9^\s]+)/i', $callback, $php);
return preg_replace_callback('/(?<!::|\\\\|(?<!eval\()\')\$([_a-z0-9^\s]+)/i', $callback, $php);
}
}