diff options
author | Martial Saunois <saunois.martial@gmail.com> | 2014-01-29 10:58:34 +0100 |
---|---|---|
committer | Martial Saunois <saunois.martial@gmail.com> | 2014-01-29 10:58:34 +0100 |
commit | 0f1c587e6baaa201f01683b6adac8cc907c4f3e3 (patch) | |
tree | 45760fe52e83c63593eac1e94d4cf8a11b216015 /tests | |
parent | 8507efc4273aa87e32090bcabb31b7bc5b98ec35 (diff) | |
download | nextcloud-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 'tests')
-rw-r--r-- | tests/lib/request.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lib/request.php b/tests/lib/request.php index 3cb58674d3e..1d77acc70ae 100644 --- a/tests/lib/request.php +++ b/tests/lib/request.php @@ -128,6 +128,11 @@ class Test_Request extends PHPUnit_Framework_TestCase { OC_Request::USER_AGENT_FREEBOX, true ), + array( + 'Fake Mozilla/5.0', + OC_Request::USER_AGENT_FREEBOX, + false + ), ); } } |