summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2018-09-26 12:55:58 +0200
committerGitHub <noreply@github.com>2018-09-26 12:55:58 +0200
commitcb53c045e38fb5988750317ccf05011af0543cef (patch)
tree02e7a8073763256c5613327082f9b49e236a1d76
parenta28a83ca6d0b3696a3662eb695090e4d2f443ce7 (diff)
parent124132439529cb836eaf83388a15d353f7713778 (diff)
Merge pull request #328 from da2x/patch-1
Restore a working User-Agent
-rw-r--r--lib/AppInfo/Application.php8
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)