aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2020-12-16 14:37:56 +0100
committerJ0WI <J0WI@users.noreply.github.com>2020-12-16 14:37:56 +0100
commit331f30f0851414e87ee6f2f69f57f3eafe1ac41f (patch)
tree1f6ec786d3978e6c922bcb902f42d3e44f2c6295 /lib/private
parentce9590618ccd431c5caa183a0e1009b2feb775bf (diff)
downloadnextcloud-server-331f30f0851414e87ee6f2f69f57f3eafe1ac41f.tar.gz
nextcloud-server-331f30f0851414e87ee6f2f69f57f3eafe1ac41f.zip
Fix IPv6 localhost regex
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/private')
-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 a873ee96772..e80a76cebe2 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -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