aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Security
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-14 13:17:20 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-12-14 13:17:20 +0100
commit7d221ff8f4d5616b24d52bb363ed2df06a45f6cf (patch)
treeca58139bb4886f6e65cbe1beb25d72ed1ee7836f /lib/private/Security
parentcd1929382ff38f321df59b17962016496b22104c (diff)
downloadnextcloud-server-7d221ff8f4d5616b24d52bb363ed2df06a45f6cf.tar.gz
nextcloud-server-7d221ff8f4d5616b24d52bb363ed2df06a45f6cf.zip
Safari CSPv3 support is sub-par
With 10.0.1 CSPv3 is broken in Safari if it doesn't run from a local IP. Awesome. => Let's remove this for Safari and keep chrome and Firefox in the whitelist. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Security')
-rw-r--r--lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
index 284700566d6..85ae127f5f1 100644
--- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
+++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php
@@ -69,8 +69,6 @@ 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 10+
- '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/1[0-9.]+ Safari\/[0-9.A-Z]+$/',
];
if($this->request->isUserAgent($browserWhitelist)) {