Replace idna_convert with PHP native functions and true/punycode

This commit is contained in:
Kijin Sung 2016-01-13 15:46:41 +09:00
parent 192e81620d
commit 9da3653fcd
9 changed files with 34 additions and 4743 deletions

View file

@ -1468,9 +1468,7 @@ function checkCSRF()
if(strpos($default_url, 'xn--') !== FALSE && strpos($referer, 'xn--') === FALSE)
{
require_once(_XE_PATH_ . 'libs/idna_convert/idna_convert.class.php');
$IDN = new idna_convert(array('idn_version' => 2008));
$referer = $IDN->encode($referer);
$referer = Context::encodeIdna($referer);
}
$default_url = parse_url($default_url);