Prevent a fatal error for an empty parameter in "unparseURL"
This commit is contained in:
parent
d850c14f42
commit
74d93269da
|
@ -419,6 +419,10 @@ class HTML
|
||||||
$link = $matches[0];
|
$link = $matches[0];
|
||||||
$url = $matches[1];
|
$url = $matches[1];
|
||||||
|
|
||||||
|
if (empty($url) || empty(parse_url($url))) {
|
||||||
|
return $matches[0];
|
||||||
|
}
|
||||||
|
|
||||||
$parts = array_merge($base, parse_url($url));
|
$parts = array_merge($base, parse_url($url));
|
||||||
$url2 = Network::unparseURL($parts);
|
$url2 = Network::unparseURL($parts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue