]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add IPv6 to “localhost” regex (#440) 4862/head
authorcoderkun <olli@coderkun.de>
Sun, 14 May 2017 19:22:13 +0000 (21:22 +0200)
committercoderkun <olli@coderkun.de>
Sun, 14 May 2017 19:29:03 +0000 (21:29 +0200)
Signed-off-by: Oliver Hanraths <olli@coderkun.de>
lib/private/AppFramework/Http/Request.php

index b39ae3e8c0cd2219c6d00203571ea28bc41751b0..09e18f74177a2d8504765a32d33a091975e39ea0 100644 (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