|
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 |
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Thu Jan 14, 2016 11:04 am Post subject: Rework $trusted_uri into a new option. |
|
|
A new option to the same extent, but with more explicit meaning, would be useful.
Code: | Smarty_Security::$remotes = array(
'<domain>' = array(['<protocol>[:port]',] ...),
...
);
|
The "<domain>" could be in a form "domain.tld" or ".domain.tld", meaning "this domain only" or "this domain and any subdomains", or a special domain name "*" to indicate globally available protocols.
The array of access protocols could be empty indicating that these URI's are disallowed, or list protocols and optionally ports allowed to access. Default ports are considered allowed, if no port is specified. |
|
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
|