diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-21 20:48:12 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-21 20:48:12 +0200 |
commit | 0fdc65a15cfe3f7ce0f1a7fff0f6d40657949aea (patch) | |
tree | 33241c602231807b2ea470c836da196e2fc9b001 /lib | |
parent | f544c9fec9e24f7216aafdada680378044ddaf61 (diff) | |
download | nextcloud-server-0fdc65a15cfe3f7ce0f1a7fff0f6d40657949aea.tar.gz nextcloud-server-0fdc65a15cfe3f7ce0f1a7fff0f6d40657949aea.zip |
Add nonce for Safari 12+
As far as I can tell this should work now.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php index 088fb2d859d..795d8cc8642 100644 --- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php +++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php @@ -74,6 +74,8 @@ class ContentSecurityPolicyNonceManager { Request::USER_AGENT_CHROME, // Firefox 45+ '/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/(4[5-9]|[5-9][0-9])\.[0-9.]+$/', + // Safari 12+ + '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/(1[2-9]|[2-9][0-9])\.[0-9]+ Safari\/[0-9.A-Z]+$/', ]; if($this->request->isUserAgent($browserWhitelist)) { |