From a85c242e0950f170f58b611cea35dcaba42eb86c Mon Sep 17 00:00:00 2001 From: yongirl Date: Fri, 2 Apr 2021 14:06:47 +0800 Subject: [PATCH] scheme check bug --- var/Widget/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/Widget/Service.php b/var/Widget/Service.php index 556f1190..c45c07b6 100644 --- a/var/Widget/Service.php +++ b/var/Widget/Service.php @@ -90,7 +90,7 @@ class Widget_Service extends Widget_Abstract_Options implements Widget_Interface $urlPart = parse_url($url); if (isset($urlPart['scheme'])) { - if ('http' != $urlPart['scheme'] || 'https' != $urlPart['scheme']) { + if ('http' != $urlPart['scheme'] && 'https' != $urlPart['scheme']) { continue; } } else {