Skip to content

Commit

Permalink
Fix Fatal in the MF2 library
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk committed Oct 22, 2024
1 parent 956d3df commit 4bbb514
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libs/Mf2/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit 4bbb514

Please sign in to comment.