Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Rework $trusted_uri into a new option.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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