diff options
author | Pavel Krasikov <klonishe@gmail.com> | 2020-03-14 16:19:57 +0300 |
---|---|---|
committer | Pavel Krasikov <klonishe@gmail.com> | 2020-03-14 16:47:28 +0300 |
commit | f11dee9bc42fb087365757096ac7ae78217de88b (patch) | |
tree | bb667e41357d37e40f7ece3cd8b1e8d4e1c8ca14 /lib/private/Security | |
parent | e921e27a39a2e8b6fdb2ce5a861d39f68a3d37c6 (diff) | |
download | nextcloud-server-f11dee9bc42fb087365757096ac7ae78217de88b.tar.gz nextcloud-server-f11dee9bc42fb087365757096ac7ae78217de88b.zip |
fix safari useragent for versions with 3 digits
Signed-off-by: Pavel Krasikov <klonishe@gmail.com>
Diffstat (limited to 'lib/private/Security')
-rw-r--r-- | lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php index 773cde18a9a..7298fbe2eda 100644 --- a/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php +++ b/lib/private/Security/CSP/ContentSecurityPolicyNonceManager.php @@ -82,7 +82,7 @@ class ContentSecurityPolicyNonceManager { // 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]+$/', + '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/(?:1[2-9]|[2-9][0-9])\.[0-9]+(?:\.[0-9]+)? Safari\/[0-9.A-Z]+$/', ]; if($this->request->isUserAgent($browserWhitelist)) { |