https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d850c14
)
Prevent a fatal error for an empty parameter in "unparseURL"
author
Michael Vogel
<icarus@dabo.de>
Fri, 23 Aug 2019 05:19:08 +0000
(07:19 +0200)
committer
Michael Vogel
<icarus@dabo.de>
Fri, 23 Aug 2019 05:19:08 +0000
(07:19 +0200)
src/Content/Text/HTML.php
patch
|
blob
|
history
diff --git
a/src/Content/Text/HTML.php
b/src/Content/Text/HTML.php
index
c8bed0b
..
ddc587d
100644
(file)
--- a/
src/Content/Text/HTML.php
+++ b/
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);