mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(CS): Fix coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c4684089a8
commit
696ed4a125
1 changed files with 1 additions and 1 deletions
|
|
@ -611,7 +611,7 @@ class Request implements \ArrayAccess, \Countable, IRequest {
|
|||
if ($colons > 1) {
|
||||
// Extract IP from string with brackets and optional port
|
||||
if (preg_match('/^\[(.+?)\](?::\d+)?$/', $IP, $matches) && isset($matches[1])) {
|
||||
$IP = $matches[1];
|
||||
$IP = $matches[1];
|
||||
}
|
||||
} elseif ($colons === 1) {
|
||||
// IPv4 with port
|
||||
|
|
|
|||
Loading…
Reference in a new issue