summaryrefslogtreecommitdiffstats
path: root/lib/private/request.php
diff options
context:
space:
mode:
authorMartial Saunois <saunois.martial@gmail.com>2014-01-29 10:58:34 +0100
committerMartial Saunois <saunois.martial@gmail.com>2014-01-29 10:58:34 +0100
commit0f1c587e6baaa201f01683b6adac8cc907c4f3e3 (patch)
tree45760fe52e83c63593eac1e94d4cf8a11b216015 /lib/private/request.php
parent8507efc4273aa87e32090bcabb31b7bc5b98ec35 (diff)
downloadnextcloud-server-0f1c587e6baaa201f01683b6adac8cc907c4f3e3.tar.gz
nextcloud-server-0f1c587e6baaa201f01683b6adac8cc907c4f3e3.zip
The regexp of the Freebox user agent is now more strict.
A new unit test has been added in consequence.
Diffstat (limited to 'lib/private/request.php')
-rwxr-xr-xlib/private/request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/request.php b/lib/private/request.php
index 855148ac25a..2c5b907846e 100755
--- a/lib/private/request.php
+++ b/lib/private/request.php
@@ -11,7 +11,7 @@ class OC_Request {
const USER_AGENT_IE = '/MSIE/';
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#';
- const USER_AGENT_FREEBOX = '#Mozilla/5\.0$#';
+ const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#';
/**
* @brief Check overwrite condition