aboutsummaryrefslogtreecommitdiff
path: root/app/models/Feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/Feed.php')
-rw-r--r--app/models/Feed.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/Feed.php b/app/models/Feed.php
index 628b63df9..d76d4cd0e 100644
--- a/app/models/Feed.php
+++ b/app/models/Feed.php
@@ -194,6 +194,7 @@ class Feed extends Model {
);
} else {
$feed = new SimplePie ();
+ $feed->set_useragent(Translate::t ('freshrss') . '/' . '0.7' . ' (' . PHP_OS . '; http://marienfressinaud.github.io/FreshRSS/) ' . SIMPLEPIE_NAME . '/' . SIMPLEPIE_VERSION);
$url = str_replace ('&', '&', $this->url);
if ($this->httpAuth != '') {
$url = preg_replace ('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $url);