Skip to content
Snippets Groups Projects
Unverified Commit fbbb48fc authored by Julius Härtl's avatar Julius Härtl Committed by GitHub
Browse files

Merge pull request #24730 from J0WI/fix-trusted-ipv6

Fix IPv6 localhost regex
parents 114b472e 331f30f0
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
// 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_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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment