|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
shwekhaw Smarty Rookie
Joined: 07 Apr 2005 Posts: 10
|
Posted: Wed Dec 10, 2014 4:45 pm Post subject: Using direct php functions allowed |
|
|
In our old code we had if statement with strpos($haystack,$needle) format just like php code syntax. I get following error in log file. However the code still works regardless of error.
Code: |
Error: Smarty error: [in order.tpl line 72]: syntax error: (secure mode) 'strpos' not allowed in if statement (Smarty_Compiler.class.php, line 1399)
|
I created modifier and changing $haystack|strpos:$needle format to make it working smarty way. But shouldn't Smarty be stopping the code from working if it is security issue? Is there a setting that you turn on to stop direct use of such php function in smarty?
By the way. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|