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:
4a19348
)
ParseUrl: Remove image when it doesn't fit the requirements
author
Michael
<heluecht@pirati.ca>
Sun, 28 Mar 2021 06:47:58 +0000
(06:47 +0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 28 Mar 2021 06:47:58 +0000
(06:47 +0000)
src/Util/ParseUrl.php
patch
|
blob
|
history
diff --git
a/src/Util/ParseUrl.php
b/src/Util/ParseUrl.php
index
ce626b8
..
0ba0bc2
100644
(file)
--- a/
src/Util/ParseUrl.php
+++ b/
src/Util/ParseUrl.php
@@
-524,7
+524,11
@@
class ParseUrl
$image['contenttype'] = $photodata['mime'];
unset($image['url']);
ksort($image);
+ } else {
+ $image = [];
}
+ } else {
+ $image = [];
}
});