Merge pull request #4862 from coderkun/issue-440-localhost-regex

Add IPv6 to “localhost” regex (#440)
This commit is contained in:
Joas Schilling 2017-05-15 12:45:39 +02:00 committed by GitHub
commit c56c98183d
1 changed files with 1 additions and 1 deletions

View File

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