mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Merge pull request #1120 from misol/support_punycode_domain
fix for Not-Alphabet URL document writing (#634)
This commit is contained in:
commit
bec1f35902
8 changed files with 4744 additions and 0 deletions
|
|
@ -1567,6 +1567,13 @@ function checkCSRF()
|
|||
$defaultUrl = Context::getDefaultUrl();
|
||||
$referer = parse_url($_SERVER["HTTP_REFERER"]);
|
||||
|
||||
if(strpos(Context::getRequestUri(), 'xn--') !== FALSE)
|
||||
{
|
||||
require_once(_XE_PATH_ . 'libs/idna_convert/idna_convert.class.php');
|
||||
$IDN = new idna_convert(array('idn_version' => 2008));
|
||||
$referer = parse_url($IDN->encode($_SERVER["HTTP_REFERER"]));
|
||||
}
|
||||
|
||||
$oModuleModel = getModel('module');
|
||||
$siteModuleInfo = $oModuleModel->getDefaultMid();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue