diff options
| -rw-r--r-- | it_html.class | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/it_html.class b/it_html.class index f87f740..f633be3 100644 --- a/it_html.class +++ b/it_html.class @@ -447,6 +447,8 @@ function U(/* ... */)  	if (!($u = @parse_url($base)))  		list($u['path'], $u['query']) = explode("?", $base, 2); +	$u['host'] = preg_match('/[^-_.0-9a-z]/i', $u['host']) && function_exists('idn_to_ascii') && ($idnahost = idn_to_ascii($GLOBALS['it_html']->p['charset'] == "iso-8859-1" ? utf8_encode($u['host']) : $u['host'])) ? $idnahost : $u['host'];	# Punycode hostname to include into webpage +  	# handle scheme, user, password, host  	$hostpart =   		($u['user'] ? $u['user'] . ($u['pass'] ? ":" . $u['pass'] : "") . "@" : "") . |