scheme check bug

This commit is contained in:
yongirl 2021-04-02 14:06:47 +08:00
parent 714e8788e8
commit a85c242e09

View File

@ -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 {