Skip to content

Commit

Permalink
Fix Fatal in the MF2 library (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored Oct 22, 2024
1 parent 0e4d760 commit 8c09612
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 8c09612

Please sign in to comment.