summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-24 14:59:47 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-24 19:02:16 +0100
commit95820fbd5b7a5d8241061ad30d5bf6c4fc8613d7 (patch)
tree773d7214c61cd80bdc0cca9eb659e157bfed2888 /apps
parentc46f480031856408eed09ee638da10fa495c7dad (diff)
downloadnextcloud-server-95820fbd5b7a5d8241061ad30d5bf6c4fc8613d7.tar.gz
nextcloud-server-95820fbd5b7a5d8241061ad30d5bf6c4fc8613d7.zip
Add magical regex to catch browsers
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/files/browsererrorpageplugin.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/dav/lib/files/browsererrorpageplugin.php b/apps/dav/lib/files/browsererrorpageplugin.php
index 12910955847..37a4166efef 100644
--- a/apps/dav/lib/files/browsererrorpageplugin.php
+++ b/apps/dav/lib/files/browsererrorpageplugin.php
@@ -57,7 +57,13 @@ class BrowserErrorPagePlugin extends ServerPlugin {
if ($request->getMethod() !== 'GET') {
return false;
}
- return $request->isUserAgent([Request::USER_AGENT_IE_8]);
+ return $request->isUserAgent([
+ Request::USER_AGENT_IE,
+ Request::USER_AGENT_MS_EDGE,
+ Request::USER_AGENT_CHROME,
+ Request::USER_AGENT_FIREFOX,
+ Request::USER_AGENT_SAFARI,
+ ]);
}
/**