mirror of
https://github.com/processwire/processwire.git
synced 2025-08-13 02:04:35 +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()) {
|
||||
$options['requireScheme'] = true;
|
||||
$options['allowRelative'] = false;
|
||||
if(empty($options['allowSchemes'])) $options['allowSchemes'] = array('http', 'https');
|
||||
return $this->url($value, $options);
|
||||
}
|
||||
|
Reference in New Issue
Block a user