mirror of
https://github.com/nextcloud/server.git
synced 2024-08-16 14:12:54 +02:00
fix: Adjust user agent pattern for Edge
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
94ebc97326
commit
b8c5bff673
@ -68,7 +68,7 @@ use Symfony\Component\HttpFoundation\IpUtils;
|
||||
class Request implements \ArrayAccess, \Countable, IRequest {
|
||||
public const USER_AGENT_IE = '/(MSIE)|(Trident)/';
|
||||
// Microsoft Edge User Agent from https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
|
||||
public const USER_AGENT_MS_EDGE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/';
|
||||
public const USER_AGENT_MS_EDGE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+ Edge?\/[0-9.]+$/';
|
||||
// Firefox User Agent from https://developer.mozilla.org/en-US/docs/Web/HTTP/Gecko_user_agent_string_reference
|
||||
public const USER_AGENT_FIREFOX = '/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/[0-9.]+$/';
|
||||
// Chrome User Agent from https://developer.chrome.com/multidevice/user-agent
|
||||
|
Loading…
Reference in New Issue
Block a user