From 61f9532cca30809d96eea56effbad09b000b94de Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 24 Oct 2021 13:17:04 +0200 Subject: [PATCH] [0005509] Installer: Fixed errors handling, fixed errors on db passwords containg special characters or longer than 20 chars. Allowed passwords up to 32 chars long. --- includes/ui/ui_input.inc | 2 +- install/index.php | 2 +- install/isession.inc | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/ui/ui_input.inc b/includes/ui/ui_input.inc index 0b59aaaa..7f680eaf 100644 --- a/includes/ui/ui_input.inc +++ b/includes/ui/ui_input.inc @@ -696,7 +696,7 @@ function date_row($label, $name, $title=null, $check=null, $inc_days=0, $inc_mon function password_row($label, $name, $value) { echo "$label"; - label_cell(""); + label_cell(""); echo "\n"; } diff --git a/install/index.php b/install/index.php index 5a2b24bc..8e44b468 100644 --- a/install/index.php +++ b/install/index.php @@ -235,7 +235,7 @@ elseif (isset($_POST['db_test'])) { 'host' => $_POST['host'], 'port' => $_POST['port'], 'dbuser' => $_POST['dbuser'], - 'dbpassword' => $_POST['dbpassword'], + 'dbpassword' => @html_entity_decode($_POST['dbpassword'], ENT_QUOTES, $_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding), 'dbname' => $_POST['dbname'], 'tbpref' => $_POST['tbpref'] ? '0_' : '', 'sel_langs' => check_value('sel_langs'), diff --git a/install/isession.inc b/install/isession.inc index bf21f18b..b65d52ed 100644 --- a/install/isession.inc +++ b/install/isession.inc @@ -125,6 +125,14 @@ $inst_langs = array( 'zh_CN' => array ( 'name' => 'Chinese Simplifed', 'code' => 'zh_CN', 'encoding' => 'utf-8'), ); +if ($SysPrefs->go_debug > 0) + $cur_error_level = -1; +else + $cur_error_level = E_USER_WARNING|E_USER_ERROR|E_USER_NOTICE; + +error_reporting($cur_error_level); +ini_set("display_errors", "On"); + $Ajax = new Ajax(); get_text_init(); -- 2.30.2