diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-21 09:59:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 09:59:31 +0100 |
commit | fbbb48fcc2dbd84f44c6d1366fd48874554c6a3b (patch) | |
tree | b5ed3f7bb4522eeefc6e9928411c594a3d9486ee /lib | |
parent | 114b472e7139fd40813104792cb0cbebcf72f0c1 (diff) | |
parent | 331f30f0851414e87ee6f2f69f57f3eafe1ac41f (diff) | |
download | nextcloud-server-fbbb48fcc2dbd84f44c6d1366fd48874554c6a3b.tar.gz nextcloud-server-fbbb48fcc2dbd84f44c6d1366fd48874554c6a3b.zip |
Merge pull request #24730 from J0WI/fix-trusted-ipv6
Fix IPv6 localhost regex
Diffstat (limited to 'lib')
-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 a75890111f2..deabbe5206a 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 |