Fix IPv6 localhost regex

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2020-12-16 14:37:56 +01:00 committed by backportbot[bot]
parent 680e03c628
commit d749f515de
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent // Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
public const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#'; public const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#';
public const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#'; public const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#';
public const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost|::1)$/'; public const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost|\[::1\])$/';
/** /**
* @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_IOS instead * @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_IOS instead