diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-26 12:07:10 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-10-26 12:07:10 +0200 |
commit | c20ab0049f91cbace09cbec3ce35e9b41515f179 (patch) | |
tree | 73a342c80f4a7b1ebcb80f468f1e415e0230fa90 /lib/private/Security | |
parent | fdcb8edd78c645e722716fec1d12fa8fac750553 (diff) | |
download | nextcloud-server-c20ab0049f91cbace09cbec3ce35e9b41515f179.tar.gz nextcloud-server-c20ab0049f91cbace09cbec3ce35e9b41515f179.zip |
Identify Chromium as Chrome
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php index e6a39b12a42..284700566d6 100644 --- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php +++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php @@ -21,6 +21,7 @@ namespace OC\Security\CSP; +use OC\AppFramework\Http\Request; use OC\Security\CSRF\CsrfTokenManager; use OCP\IRequest; @@ -65,8 +66,7 @@ class ContentSecurityPolicyNonceManager { */ public function browserSupportsCspV3() { $browserWhitelist = [ - // Chrome 40+ - '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[4-9][0-9].[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+$/', + Request::USER_AGENT_CHROME, // Firefox 45+ '/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/(4[5-9]|[5-9][0-9])\.[0-9.]+$/', // Safari 10+ |