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
This commit is contained in:
Alexandre Alapetite
2013-11-17 01:11:32 +01:00
parent ac857ca743
commit a532a02363

View File

@@ -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);