From 4bbb514bcfb45cf14e8fa3a6508377e779ee633d Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Tue, 22 Oct 2024 10:40:52 +0200 Subject: [PATCH] Fix Fatal in the MF2 library --- libs/Mf2/Parser.php | 3 +++ 1 file changed, 3 insertions(+) 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'];