Skip to content

Commit

Permalink
Merge pull request #24730 from J0WI/fix-trusted-ipv6
Browse files Browse the repository at this point in the history
Fix IPv6 localhost regex
  • Loading branch information
juliusknorr authored Dec 21, 2020
2 parents 114b472 + 331f30f commit fbbb48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/AppFramework/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbbb48f

Please sign in to comment.