projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b074902
)
Fix a notice when the author is missing
author
Michael
<heluecht@pirati.ca>
Fri, 21 Jun 2019 17:57:26 +0000
(17:57 +0000)
committer
Michael
<heluecht@pirati.ca>
Fri, 21 Jun 2019 17:57:26 +0000
(17:57 +0000)
src/Module/Diaspora/Fetch.php
patch
|
blob
|
history
diff --git
a/src/Module/Diaspora/Fetch.php
b/src/Module/Diaspora/Fetch.php
index bcb33e3359aebf18c04b4a754ca8ac61bbfe6c04..467d64566b769048d1f5a106866afcfa7c49754d 100644
(file)
--- a/
src/Module/Diaspora/Fetch.php
+++ b/
src/Module/Diaspora/Fetch.php
@@
-41,6
+41,9
@@
class Fetch extends BaseModule
$item = Item::selectFirst(['author-link'], $condition);
if (empty($item)) {
$parts = parse_url($item["author-link"]);
+ if (empty($parts["scheme"]) || empty($parts["host"])) {
+ throw new HTTPException\InternalServerErrorException();
+ }
$host = $parts["scheme"] . "://" . $parts["host"];
if (Strings::normaliseLink($host) != Strings::normaliseLink($app->getBaseURL())) {