diff --git a/libs/Mf2/Parser.php b/libs/Mf2/Parser.php index 07e8b046..c09fefef 100644 --- a/libs/Mf2/Parser.php +++ b/libs/Mf2/Parser.php @@ -2226,6 +2226,9 @@ function parseUriToComponents($uri) { } $u = parse_url($uri); + if ( ! $u ) { + return $result; + } if(array_key_exists('scheme', $u)) $result['scheme'] = $u['scheme'];