Browse Source

Merge pull request #7553 from annando/fatal

Prevent a fatal error for an empty parameter in "unparseURL"
pull/7566/head
Philipp 2 years ago
committed by GitHub
parent
commit
b914900ff5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/Content/Text/HTML.php

4
src/Content/Text/HTML.php

@ -419,6 +419,10 @@ class HTML
$link = $matches[0];
$url = $matches[1];
if (empty($url) || empty(parse_url($url))) {
return $matches[0];
}
$parts = array_merge($base, parse_url($url));
$url2 = Network::unparseURL($parts);

Loading…
Cancel
Save