Skip to content

Commit 71a8ee0

Browse files
author
Florian Schaal
committed
2 parents 4f9dee1 + e9d5c95 commit 71a8ee0

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

interface/lib/classes/functions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ private function _idn_encode_decode($domain, $encode = true) {
301301

302302
if($encode == true) {
303303
if(function_exists('idn_to_ascii')) {
304-
$domain = idn_to_ascii($domain);
304+
$domain = idn_to_ascii($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
305305
} elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
306306
/* use idna class:
307307
* @author Matthias Sommerfeld <mso@phlylabs.de>
@@ -318,7 +318,7 @@ private function _idn_encode_decode($domain, $encode = true) {
318318
}
319319
} else {
320320
if(function_exists('idn_to_utf8')) {
321-
$domain = idn_to_utf8($domain);
321+
$domain = idn_to_utf8($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
322322
} elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
323323
/* use idna class:
324324
* @author Matthias Sommerfeld <mso@phlylabs.de>

interface/lib/classes/listform.inc.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,20 @@ public function getSearchSQL($sql_where = '')
197197
$table = $i['table'];
198198

199199
$searchval = $_SESSION['search'][$list_name][$search_prefix.$field];
200+
// IDN
201+
if($searchval != ''){
202+
foreach($i['filters'] as $searchval_filter) {
203+
if($searchval_filter['event'] == 'SHOW') {
204+
switch ($searchval_filter['type']) {
205+
case 'IDNTOUTF8':
206+
$searchval = $app->functions->idn_encode($searchval);
207+
//echo $searchval;
208+
break;
209+
}
210+
}
211+
}
212+
}
213+
200214
// format user date format to MySQL date format 0000-00-00
201215
if($i['datatype'] == 'DATE' && $this->lng('conf_format_dateshort') != 'Y-m-d'){
202216
$dateformat = preg_replace("@[^Ymd]@", "", $this->lng('conf_format_dateshort'));

interface/web/client/client_edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function onAfterInsert() {
249249
$modules = $conf['interface_modules_enabled'];
250250
if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] > 0) $modules .= ',client';
251251
$startmodule = (stristr($modules, 'dashboard'))?'dashboard':'client';
252-
$usertheme = $this->dataRecord["usertheme"];
252+
$usertheme = (isset($this->dataRecord["usertheme"]) && $this->dataRecord["usertheme"] != ''? $this->dataRecord["usertheme"] : 'default');
253253
$type = 'user';
254254
$active = 1;
255255
$language = $this->dataRecord["language"];

interface/web/login/lib/module.conf.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
$module["title"] = "top_menu_login";
44
$module["template"] = "module.tpl.htm";
55
$module["startpage"] = "login/index.php";
6+
$module["nav"] = array();
67
?>

interface/web/sites/templates/database_quota_stats_list.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ <h1><tmpl_var name="list_head_txt"></h1>
88
<table class="table">
99
<thead class="dark form-group-sm">
1010
<tr>
11-
<th data-column="database"><tmpl_var name="database_txt"></th>
11+
<th data-column="database_name"><tmpl_var name="database_txt"></th>
1212
<th data-column="server_name"><tmpl_var name="server_name_txt"></th>
1313
<th data-column="client"><tmpl_var name="client_txt"></th>
1414
<th data-column="used"><tmpl_var name="used_txt"></th>

server/lib/classes/functions.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ private function _idn_encode_decode($domain, $encode = true) {
353353

354354
if($encode == true) {
355355
if(function_exists('idn_to_ascii')) {
356-
$domain = idn_to_ascii($domain);
356+
$domain = idn_to_ascii($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
357357
} elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
358358
/* use idna class:
359359
* @author Matthias Sommerfeld <mso@phlylabs.de>
@@ -370,7 +370,7 @@ private function _idn_encode_decode($domain, $encode = true) {
370370
}
371371
} else {
372372
if(function_exists('idn_to_utf8')) {
373-
$domain = idn_to_utf8($domain);
373+
$domain = idn_to_utf8($domain, IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
374374
} elseif(file_exists(ISPC_CLASS_PATH.'/idn/idna_convert.class.php')) {
375375
/* use idna class:
376376
* @author Matthias Sommerfeld <mso@phlylabs.de>

0 commit comments

Comments
 (0)