Просмотр исходного кода

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
Alexandre Alapetite 12 лет назад
Родитель
Сommit
a532a02363
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/models/Feed.php

+ 1 - 0
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);