Skip to content

Commit

Permalink
csfix
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoala committed Jun 28, 2023
1 parent a969180 commit a019b34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Control/Util/IPUtils.php
@@ -1,4 +1,5 @@
<?php

/**
* These helpful functions were lifted from the Symfony library
* https://github.com/symfony/http-foundation/blob/master/LICENSE
Expand All @@ -7,6 +8,7 @@
*
* @author Fabien Potencier <fabien@symfony.com>
*/

namespace SilverStripe\Control\Util;

/**
Expand Down Expand Up @@ -158,7 +160,7 @@ public static function anonymize(string $ip): string
$ip = inet_ntop($packedAddress & inet_pton($mask));

if ($wrappedIPv6) {
$ip = '['.$ip.']';
$ip = '[' . $ip . ']';
}

return $ip;
Expand Down

0 comments on commit a019b34

Please sign in to comment.