Skip to content

Commit ebf017e

Browse files
committed
fix: treat mobile Firefox on iOS as mobile Safari
Firefox on iOS uses WebKit engine and should be treated similarly to Safari on iOS for compatibility purposes. Fixes: #58656
1 parent 6f1fc07 commit ebf017e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)( Version\/[0-9.]+ (Mobile\/[0-9.A-Z]+) Safari\/[0-9.A-Z]+| FxiOS\/[0-9.]+.*Safari\/[0-9.]+)$/';
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)