diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-07-20 14:13:23 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-07-20 14:13:23 +0200 |
commit | eb3410322ec8b94a7fa60e090d15a2fd879201fa (patch) | |
tree | fba7d024d5c8772e3ae4486f57a85f101c26c10b /settings/js | |
parent | f414c664f281ad14ed2b0e976ea73238d895457d (diff) | |
download | nextcloud-server-eb3410322ec8b94a7fa60e090d15a2fd879201fa.tar.gz nextcloud-server-eb3410322ec8b94a7fa60e090d15a2fd879201fa.zip |
improve matching safari user agent
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/authtoken_view.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 2ebedb4131c..cef5dc9f7bb 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -114,7 +114,7 @@ // Chrome User Agent from https://developer.chrome.com/multidevice/user-agent chrome: /^Mozilla\/5\.0 \([^)]*(Windows|OS X|Linux)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/(\d+)[0-9.]+ (?:Mobile Safari|Safari)\/[0-9.]+$/, // Safari User Agent from http://www.useragentstring.com/pages/Safari/ - safari: /^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/([0-9]+)[0-9.]+ Safari\/[0-9.A-Z]+$/, + safari: /^Mozilla\/5\.0 \([^)]*(Windows|OS X)[^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)(?: Version\/([0-9]+)[0-9.]+)? Safari\/[0-9.A-Z]+$/, // Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent androidChrome: /Android.*(?:; (.*) Build\/).*Chrome\/(\d+)[0-9.]+/, iphone: / *CPU +iPhone +OS +(\d+)_\d+ +like +Mac +OS +X */, |