diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-10-26 16:41:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-26 16:41:34 +0200 |
commit | b98dfaccd96fb9b0da13bc59f55ed9b61cbbd528 (patch) | |
tree | 3d7ce4fe873d345912aab0e2c999000ff93494ae /tests | |
parent | cd12e2d20aa5656cbc51a17684c897ae75f78e9f (diff) | |
parent | c20ab0049f91cbace09cbec3ce35e9b41515f179 (diff) | |
download | nextcloud-server-b98dfaccd96fb9b0da13bc59f55ed9b61cbbd528.tar.gz nextcloud-server-b98dfaccd96fb9b0da13bc59f55ed9b61cbbd528.zip |
Merge pull request #1920 from nextcloud/legacy-pages-should-also-receive-the-nonce
Add nonce also to legacy CSP
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/AppFramework/Http/RequestTest.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lib/AppFramework/Http/RequestTest.php b/tests/lib/AppFramework/Http/RequestTest.php index 420b73a22d9..1ba20869439 100644 --- a/tests/lib/AppFramework/Http/RequestTest.php +++ b/tests/lib/AppFramework/Http/RequestTest.php @@ -792,6 +792,20 @@ class RequestTest extends \Test\TestCase { false, ], [ + 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36', + [ + Request::USER_AGENT_CHROME + ], + true, + ], + [ + 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/53.0.2785.143 Chrome/53.0.2785.143 Safari/537.36', + [ + Request::USER_AGENT_CHROME + ], + true, + ], + [ 'Mozilla/5.0 (Linux; Android 4.4; Nexus 4 Build/KRT16S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.59 Mobile Safari/537.36', [ Request::USER_AGENT_ANDROID_MOBILE_CHROME |