aboutsummaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:11:32 +0100
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-11-17 01:11:32 +0100
commita532a023633ac692bd573d4ec29b7871e8e4c19f (patch)
tree64143f5998a1b688c2e6d2f1b14c8ae451819999 /app/models
parentac857ca7431f8d1ac562e085c8ef672bd10de9c8 (diff)
Useragent
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
Diffstat (limited to 'app/models')
-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 ('&amp;', '&', $this->url);
if ($this->httpAuth != '') {
$url = preg_replace ('#((.+)://)(.+)#', '${1}' . $this->httpAuth . '@${3}', $url);