mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-04 06:29:26 -05:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user