summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBernhard Posselt <BernhardPosselt@users.noreply.github.com>2016-09-20 20:08:30 +0200
committerGitHub <noreply@github.com>2016-09-20 20:08:30 +0200
commite4e384974b68171a333f7e1c18d2ba8027d51e84 (patch)
tree7633620bed21ae3c24868b0c43053d0a2fd452f0
parent50aa2bb5235184f7faf66ab2efb318603b29ce4a (diff)
parenta26186f44342af52ee2b752930445e0b3c46ba9e (diff)
Merge pull request #39 from xomit/master
Implementation for issue https://github.com/nextcloud/news/issues/38
-rw-r--r--lib/Db/Feed.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Db/Feed.php b/lib/Db/Feed.php
index 1fdcf13fb..974f2ed8c 100644
--- a/lib/Db/Feed.php
+++ b/lib/Db/Feed.php
@@ -137,7 +137,7 @@ class Feed extends Entity implements IAPI, \JsonSerializable {
'basicAuthPassword'
]);
- $url = parse_url($this->link)['host'];
+ $url = parse_url($this->link, PHP_URL_HOST);
// strip leading www. to avoid css class confusion
if (strpos($url, 'www.') === 0) {