diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-10-27 13:24:28 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-10-27 13:24:28 +0200 |
commit | d4b9b010b0cb753a86af63cb917020e790555036 (patch) | |
tree | 958af49517afc49746bb65727420f3871144f4f8 /lib/private/Http | |
parent | 9ba3f264c0df619f2ee9c8edde0dfa291764f910 (diff) | |
download | nextcloud-server-d4b9b010b0cb753a86af63cb917020e790555036.tar.gz nextcloud-server-d4b9b010b0cb753a86af63cb917020e790555036.zip |
Rename LocalAddressChecker methods to lower case
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Http')
-rw-r--r-- | lib/private/Http/Client/Client.php | 2 | ||||
-rw-r--r-- | lib/private/Http/Client/DnsPinMiddleware.php | 2 | ||||
-rw-r--r-- | lib/private/Http/Client/LocalAddressChecker.php | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/lib/private/Http/Client/Client.php b/lib/private/Http/Client/Client.php index 4bf7fd02400..d4dba3e5a44 100644 --- a/lib/private/Http/Client/Client.php +++ b/lib/private/Http/Client/Client.php @@ -181,7 +181,7 @@ class Client implements IClient { return; } - $this->localAddressChecker->ThrowIfLocalAddress($uri); + $this->localAddressChecker->throwIfLocalAddress($uri); } /** diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php index f5e6214a4ab..00bc209d7b1 100644 --- a/lib/private/Http/Client/DnsPinMiddleware.php +++ b/lib/private/Http/Client/DnsPinMiddleware.php @@ -133,7 +133,7 @@ class DnsPinMiddleware { $curlResolves["$hostName:$port"] = []; foreach ($targetIps as $ip) { - $this->localAddressChecker->ThrowIfLocalIp($ip); + $this->localAddressChecker->throwIfLocalIp($ip); $curlResolves["$hostName:$port"][] = $ip; } } diff --git a/lib/private/Http/Client/LocalAddressChecker.php b/lib/private/Http/Client/LocalAddressChecker.php index 13a7d062de3..eb24f002d7d 100644 --- a/lib/private/Http/Client/LocalAddressChecker.php +++ b/lib/private/Http/Client/LocalAddressChecker.php @@ -39,7 +39,7 @@ class LocalAddressChecker { $this->logger = $logger; } - public function ThrowIfLocalIp(string $ip) : void { + public function throwIfLocalIp(string $ip) : void { $parsedIp = Factory::parseAddressString( $ip, ParseStringFlag::IPV4_MAYBE_NON_DECIMAL | ParseStringFlag::IPV4ADDRESS_MAYBE_NON_QUAD_DOTTED @@ -70,7 +70,7 @@ class LocalAddressChecker { } } - public function ThrowIfLocalAddress(string $uri) : void { + public function throwIfLocalAddress(string $uri) : void { $host = parse_url($uri, PHP_URL_HOST); if ($host === false || $host === null) { $this->logger->warning("Could not detect any host in $uri"); @@ -97,6 +97,6 @@ class LocalAddressChecker { throw new LocalServerException('Host violates local access rules'); } - $this->ThrowIfLocalIp($host); + $this->throwIfLocalIp($host); } } |