mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Replace idna_convert with PHP native functions and true/punycode
This commit is contained in:
parent
192e81620d
commit
9da3653fcd
9 changed files with 34 additions and 4743 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue