Skip to content

Commit a118773

Browse files
Merge pull request #59168 from philiprenich/fix-ios-browsers
fix: treat all WebKit iOS browseres the same
2 parents bb63987 + d8b9c6d commit a118773

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/AppFramework/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
4040
public const USER_AGENT_CHROME = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)( Ubuntu Chromium\/[0-9.]+|) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+( (Vivaldi|Brave|OPR)\/[0-9.]+|)$/';
4141
// Safari User Agent from http://www.useragentstring.com/pages/Safari/
4242
public const USER_AGENT_SAFARI = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ Safari\/[0-9.A-Z]+$/';
43-
public const USER_AGENT_SAFARI_MOBILE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ (Mobile\/[0-9.A-Z]+) Safari\/[0-9.A-Z]+$/';
43+
public const USER_AGENT_SAFARI_MOBILE = '/^Mozilla\/5\.0 \((?:Apple-)?iP[^)]+\) AppleWebKit\/[0-9.+]+ \(KHTML, like Gecko\)/';
4444
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
4545
public const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#';
4646
public const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#';

0 commit comments

Comments
 (0)