summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Aleksandersen <code@daniel.priv.no>2018-09-12 03:36:42 +0200
committerGitHub <noreply@github.com>2018-09-12 03:36:42 +0200
commitdea3cebf2e07d51e0bb4b68ad7b669465b2889f5 (patch)
tree593f89c15920c8583a4d6816c6758af604423369 /lib
parent94dc4b6a42f1f7f1eceefc0e46ef034c77554492 (diff)
Restore a working User-Agent
The previous User-Agent was malformed. Using an old Chrome version now looks more suspicious. This version conforms and passes WAF just fine.
Diffstat (limited to 'lib')
-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)