1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-14 02:34:24 +02:00
This commit is contained in:
Ryan Cramer
2022-07-08 11:24:29 -04:00
parent 6a9dfe654d
commit 2e76df1a89

View File

@@ -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);
} }