mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 17:39:42 +01:00
scheme check bug
This commit is contained in:
parent
714e8788e8
commit
a85c242e09
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user