mirror of
https://github.com/processwire/processwire.git
synced 2025-08-17 20:11:46 +02:00
Additional updates for processwire/processwire-issues#1467 via @matjazpotocnik
This commit is contained in:
@@ -1802,7 +1802,7 @@ class Sanitizer extends Wire {
|
||||
if(!strlen($value)) return '';
|
||||
|
||||
$scheme = parse_url($value, PHP_URL_SCHEME);
|
||||
if($scheme !== false && strlen($scheme)) {
|
||||
if(is_string($scheme) && strlen($scheme)) {
|
||||
$_scheme = $scheme;
|
||||
$scheme = strtolower($scheme);
|
||||
$schemeError = false;
|
||||
|
Reference in New Issue
Block a user