mirror of
https://github.com/Ahwxorg/librey/
synced 2024-12-06 19:16:48 +01:00
Fix error when parsing url of instances
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
if (!$instance)
|
||||
break;
|
||||
|
||||
if (parse_url($instance)["host"] == parse_url($_SERVER['HTTP_HOST'])["host"])
|
||||
if (filter_var($instance, FILTER_VALIDATE_URL) && parse_url($instance)["host"] == parse_url($_SERVER['HTTP_HOST'])["host"])
|
||||
continue;
|
||||
|
||||
$librex_request = new LibreXFallback($instance, $opts, null);
|
||||
|
||||
Reference in New Issue
Block a user