mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Remove lang from exception list in TemplateParser_v1
This commit is contained in:
parent
5c5391ab12
commit
f13e3d633b
1 changed files with 1 additions and 1 deletions
|
|
@ -859,7 +859,7 @@ class TemplateParser_v1
|
||||||
|
|
||||||
// Replace all other variables with Context attributes.
|
// Replace all other variables with Context attributes.
|
||||||
$php = preg_replace_callback('@(?<!::|\\\\|\$__Context->|(?<!eval\()\')\$([a-z_][a-z0-9_]*)@i', function($matches) {
|
$php = preg_replace_callback('@(?<!::|\\\\|\$__Context->|(?<!eval\()\')\$([a-z_][a-z0-9_]*)@i', function($matches) {
|
||||||
if (preg_match('/^(?:GLOBALS|_SERVER|_COOKIE|_GET|_POST|_REQUEST|_SESSION|__Context|this|lang)$/', $matches[1]))
|
if (preg_match('/^(?:GLOBALS|_SERVER|_COOKIE|_ENV|_GET|_POST|_REQUEST|_SESSION|__Context|this)$/', $matches[1]))
|
||||||
{
|
{
|
||||||
return '$' . $matches[1];
|
return '$' . $matches[1];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue