Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Rework $trusted_uri into a new option.

 
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1267

PostPosted: Thu Jan 14, 2016 11:04 am    Post subject: Rework $trusted_uri into a new option. Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP