You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since I am using PHP 7.3, I realised that defined constants actually work as {EXAMPLE} right out the box, without the $smarty.const. prefix.
Is that an intentionell Smarty behaviour to be kept in future or is this PHP just being smart?
The text was updated successfully, but these errors were encountered:
You can control behavior with SmartySecurity class, if you want to disallow it.
That's not a helpful answer to the question. You only can disallow the use of php constants alltogether via Smarty_Security, so that neither {EXAMPLE} nor {$smarty.const.EXAMPLE} will work. There is currntly no hack-free way to disallow only {EXAMPLE} while keeping {$smarty.const.EXAMPLE} working.
Since I am using PHP 7.3, I realised that defined constants actually work as
{EXAMPLE}
right out the box, without the$smarty.const.
prefix.Is that an intentionell Smarty behaviour to be kept in future or is this PHP just being smart?
The text was updated successfully, but these errors were encountered: