Skip to content

A free, self-hostable news aggregator…

Useragent

Alexandre Alapetitea532a023633a
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);