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

View File

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