From 2e76df1a89bf04d9c44f01635f1faa31a4936385 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 8 Jul 2022 11:24:29 -0400 Subject: [PATCH] Fix issue processwire/processwire-issues#1593 --- wire/core/Sanitizer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wire/core/Sanitizer.php b/wire/core/Sanitizer.php index ba222040..e9343bf5 100644 --- a/wire/core/Sanitizer.php +++ b/wire/core/Sanitizer.php @@ -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); }