mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue processwire/processwire-issues#1593
This commit is contained in:
@@ -2098,7 +2098,8 @@ class Sanitizer extends Wire {
|
||||
*
|
||||
*/
|
||||
public function httpUrl($value, $options = array()) {
|
||||
$options['requireScheme'] = true;
|
||||
$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