diff --git a/interface/lib/classes/functions.inc.php b/interface/lib/classes/functions.inc.php index 43eec67fc89467b4003fa6d712f88f480049e8e8..e5f056082b70ea1f608a6eb41c61feacf9bc5350 100644 --- a/interface/lib/classes/functions.inc.php +++ b/interface/lib/classes/functions.inc.php @@ -301,7 +301,7 @@ class functions { if($encode == true) { if(function_exists('idn_to_ascii')) { - $domain = idn_to_ascii($domain); + $domain = idn_to_ascii($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) { /* use idna class: * @author Matthias Sommerfeld @@ -318,7 +318,7 @@ class functions { } } else { if(function_exists('idn_to_utf8')) { - $domain = idn_to_utf8($domain); + $domain = idn_to_utf8($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) { /* use idna class: * @author Matthias Sommerfeld diff --git a/interface/lib/classes/listform.inc.php b/interface/lib/classes/listform.inc.php index b1233a042867fcceac3f66e4613650183c9ef981..8f5bd86fc0e79f856071aec4c7100e3d1220f5f8 100644 --- a/interface/lib/classes/listform.inc.php +++ b/interface/lib/classes/listform.inc.php @@ -197,6 +197,20 @@ class listform { $table = $i['table']; $searchval = $_SESSION['search'][$list_name][$search_prefix.$field]; + // IDN + if($searchval != ''){ + foreach($i['filters'] as $searchval_filter) { + if($searchval_filter['event'] == 'SHOW') { + switch ($searchval_filter['type']) { + case 'IDNTOUTF8': + $searchval = $app->functions->idn_encode($searchval); + //echo $searchval; + break; + } + } + } + } + // format user date format to MySQL date format 0000-00-00 if($i['datatype'] == 'DATE' && $this->lng('conf_format_dateshort') != 'Y-m-d'){ $dateformat = preg_replace("@[^Ymd]@", "", $this->lng('conf_format_dateshort')); diff --git a/interface/web/client/client_edit.php b/interface/web/client/client_edit.php index bbeb82223a5782401d138ba3ee47fe051d647deb..7bc9ecd6e29f797e3edbd333824e9f97e4f53721 100644 --- a/interface/web/client/client_edit.php +++ b/interface/web/client/client_edit.php @@ -249,7 +249,7 @@ class page_action extends tform_actions { $modules = $conf['interface_modules_enabled']; if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] > 0) $modules .= ',client'; $startmodule = (stristr($modules, 'dashboard'))?'dashboard':'client'; - $usertheme = $this->dataRecord["usertheme"]; + $usertheme = (isset($this->dataRecord["usertheme"]) && $this->dataRecord["usertheme"] != ''? $this->dataRecord["usertheme"] : 'default'); $type = 'user'; $active = 1; $language = $this->dataRecord["language"]; diff --git a/interface/web/login/lib/module.conf.php b/interface/web/login/lib/module.conf.php index 0936235bbb6e722f6384435d076ea4e8cba81e4c..19feac131930f3752bd7e6539fa96f6b863aba52 100644 --- a/interface/web/login/lib/module.conf.php +++ b/interface/web/login/lib/module.conf.php @@ -3,4 +3,5 @@ $module["name"] = "login"; $module["title"] = "top_menu_login"; $module["template"] = "module.tpl.htm"; $module["startpage"] = "login/index.php"; +$module["nav"] = array(); ?> diff --git a/interface/web/sites/templates/database_quota_stats_list.htm b/interface/web/sites/templates/database_quota_stats_list.htm index a41a199303ada09febc77bf32bf604f3f5372bc8..31a19ea5f2dfdeacabe52c5a561593d40d5d30b6 100644 --- a/interface/web/sites/templates/database_quota_stats_list.htm +++ b/interface/web/sites/templates/database_quota_stats_list.htm @@ -8,7 +8,7 @@ - + diff --git a/server/lib/classes/functions.inc.php b/server/lib/classes/functions.inc.php index 5632a58753dc8a99431e7f409e53b9fedd232bee..ec07a83cc941512dfd2d3e705d6766440887eb60 100644 --- a/server/lib/classes/functions.inc.php +++ b/server/lib/classes/functions.inc.php @@ -353,7 +353,7 @@ class functions { if($encode == true) { if(function_exists('idn_to_ascii')) { - $domain = idn_to_ascii($domain); + $domain = idn_to_ascii($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) { /* use idna class: * @author Matthias Sommerfeld @@ -370,7 +370,7 @@ class functions { } } else { if(function_exists('idn_to_utf8')) { - $domain = idn_to_utf8($domain); + $domain = idn_to_utf8($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46); } elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) { /* use idna class: * @author Matthias Sommerfeld