芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/libraries.7/vendor/algo26-matthias/idna-convert/src/AbstractIdnaConvert.php
convert($parts[1]) ); } /** * @param string $url * * @return string */ public function convertUrl(string $url): string { $parsed = parse_url($url); if ($parsed === false) { throw new InvalidArgumentException('The given string does not look like a URL', 206); } // Nothing to do if (!isset($parsed['host']) || $parsed['host'] === null) { return $url; } $parsed['host'] = $this->convert($parsed['host']); return http_build_url($parsed); } }