summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-15 12:45:39 +0200
committerGitHub <noreply@github.com>2017-05-15 12:45:39 +0200
commitc56c98183d2c8078c436e9b2e0c4f2a0031b4729 (patch)
tree04dfd914050a146d0f41f2b7f842693be1b6d581 /lib
parent9ad57cabc8aeaaf0565001936233979426d41a6a (diff)
parentbdc7bb1f26145701ffa69f6484cd3d769271c4d0 (diff)
downloadnextcloud-server-c56c98183d2c8078c436e9b2e0c4f2a0031b4729.tar.gz
nextcloud-server-c56c98183d2c8078c436e9b2e0c4f2a0031b4729.zip
Merge pull request #4862 from coderkun/issue-440-localhost-regex
Add IPv6 to “localhost” regex (#440)
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Http/Request.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index b39ae3e8c0c..09e18f74177 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -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