mirror of
https://github.com/processwire/processwire.git
synced 2025-08-14 02:34:24 +02:00
Fix issue processwire/processwire-issues#1593
This commit is contained in:
@@ -2099,6 +2099,7 @@ class Sanitizer extends Wire {
|
|||||||
*/
|
*/
|
||||||
public function httpUrl($value, $options = array()) {
|
public function httpUrl($value, $options = array()) {
|
||||||
$options['requireScheme'] = true;
|
$options['requireScheme'] = true;
|
||||||
|
$options['allowRelative'] = false;
|
||||||
if(empty($options['allowSchemes'])) $options['allowSchemes'] = array('http', 'https');
|
if(empty($options['allowSchemes'])) $options['allowSchemes'] = array('http', 'https');
|
||||||
return $this->url($value, $options);
|
return $this->url($value, $options);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user