diff options
author | John Molakvoæ <skjnldsv@users.noreply.github.com> | 2018-09-26 12:55:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-26 12:55:58 +0200 |
commit | cb53c045e38fb5988750317ccf05011af0543cef (patch) | |
tree | 02e7a8073763256c5613327082f9b49e236a1d76 | |
parent | a28a83ca6d0b3696a3662eb695090e4d2f443ce7 (diff) | |
parent | 124132439529cb836eaf83388a15d353f7713778 (diff) |
Merge pull request #328 from da2x/patch-1
Restore a working User-Agent
-rw-r--r-- | lib/AppInfo/Application.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index d633de743..fef3152e3 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -172,13 +172,7 @@ class Application extends App $config = $c->query(Config::class); $proxy = $c->query(ProxyConfigParser::class); - // use chrome's user agent string since mod_security rules - // assume that only browsers can send user agent strings. This - // can lead to blocked feed updates like joomla.org - // For more information see - // https://www.atomicorp.com/wiki/index.php/WAF_309925 - $userAgent = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36' . - '(KHTML, like Gecko) Chrome/50.0.2661.75 Safari/537.36'; + $userAgent = 'NextCloud-News/1.0'; $pico = new PicoFeedConfig(); $pico->setClientUserAgent($userAgent) |