summaryrefslogtreecommitdiffstats
path: root/lib/private/Http/Client/LocalAddressChecker.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Http/Client/LocalAddressChecker.php')
-rw-r--r--lib/private/Http/Client/LocalAddressChecker.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Http/Client/LocalAddressChecker.php b/lib/private/Http/Client/LocalAddressChecker.php
index f4fea503ab9..b0de54b430f 100644
--- a/lib/private/Http/Client/LocalAddressChecker.php
+++ b/lib/private/Http/Client/LocalAddressChecker.php
@@ -72,7 +72,7 @@ class LocalAddressChecker {
throw new LocalServerException('Could not detect any host');
}
- $host = strtolower($host);
+ $host = idn_to_utf8(strtolower(urldecode($host)));
// Remove brackets from IPv6 addresses
if (strpos($host, '[') === 0 && substr($host, -1) === ']') {
$host = substr($host, 1, -1);