Replies: 2 comments
-
For the record, the Tiki project uses Smarty since 2002 (https://doc.tiki.org/Smarty-Templates) but doesn't use this feature. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Not a lot of votes on this one, but unanimous. I plan to deprecate this in v5.1: #933 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Smarty supports stream variables, as documented here. With security enabled with its default configuration, this will allow you to read from the filesystem. Without security enabled, you can access any PHP stream. On my system, the list is:
IMHO, no one should be reading from PHP streams from within a template. I propose to remove this feature from Smarty entirely in a future version.
Note that this is not the same as using streams for loading templates, as documented here.
6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions