diff options
author | coderkun <olli@coderkun.de> | 2017-05-14 21:22:13 +0200 |
---|---|---|
committer | coderkun <olli@coderkun.de> | 2017-05-14 21:29:03 +0200 |
commit | bdc7bb1f26145701ffa69f6484cd3d769271c4d0 (patch) | |
tree | 82a64d63ce7f23e0bb3b8a1f1e1961841c6eba5b | |
parent | 6e3a914f4affde68c5cafa8fc7703efa3c3deaa6 (diff) | |
download | nextcloud-server-bdc7bb1f26145701ffa69f6484cd3d769271c4d0.tar.gz nextcloud-server-bdc7bb1f26145701ffa69f6484cd3d769271c4d0.zip |
Add IPv6 to “localhost” regex (#440)
Signed-off-by: Oliver Hanraths <olli@coderkun.de>
-rw-r--r-- | lib/private/AppFramework/Http/Request.php | 2 |
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 |