mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +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
|
|
@ -74,9 +74,7 @@ class installAdminController extends install
|
|||
if($default_url && substr($default_url, -1) !== '/') $default_url = $default_url.'/';
|
||||
|
||||
/* convert NON Alphabet URL to punycode URL - Alphabet URL will not be changed */
|
||||
require_once(_XE_PATH_ . 'libs/idna_convert/idna_convert.class.php');
|
||||
$IDN = new idna_convert(array('idn_version' => 2008));
|
||||
$default_url = $IDN->encode($default_url);
|
||||
$default_url = Context::encodeIdna($default_url);
|
||||
|
||||
$use_ssl = Context::get('use_ssl');
|
||||
if(!$use_ssl) $use_ssl = 'none';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue