diff options
Diffstat (limited to 'lib/Fetcher/FeedFetcher.php')
-rwxr-xr-x | lib/Fetcher/FeedFetcher.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/Fetcher/FeedFetcher.php b/lib/Fetcher/FeedFetcher.php index 898597460..9b4a2f996 100755 --- a/lib/Fetcher/FeedFetcher.php +++ b/lib/Fetcher/FeedFetcher.php @@ -67,7 +67,7 @@ class FeedFetcher implements IFeedFetcher { if (!empty($user) && !empty(trim($user))) { $url = explode('://', $url); - $url = $url[0] . '://' . $user . ':' . $password . '@' . $url[1]; + $url = $url[0] . '://' . urlencode($user) . ':' . urlencode($password) . '@' . $url[1]; } if (is_null($lastModified) || !is_string($lastModified)) { $resource = $this->reader->read($url); @@ -95,7 +95,10 @@ class FeedFetcher implements IFeedFetcher ); $items = []; - $this->logger->debug('Feed ' . $url . ' was modified since last fetch. #' . count($parsedFeed) . ' items'); + $this->logger->debug('Feed {url} was modified since last fetch. #{count} items', [ + 'url' => $url, + 'count' => count($parsedFeed), + ]); foreach ($parsedFeed as $item) { $items[] = $this->buildItem($item, $parsedFeed); } |