From a532a023633ac692bd573d4ec29b7871e8e4c19f Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 17 Nov 2013 01:11:32 +0100 Subject: Useragent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exemple : `FreshRSS/0.7 (Linux; http://marienfressinaud.github.io/FreshRSS/) SimplePie/1.3.1` Voir https://github.com/marienfressinaud/FreshRSS/issues/271 pour le numéro de version --- app/models/Feed.php | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models') 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); -- cgit v1.2.3