[0005509] Installer: Fixed errors handling, fixed errors on db passwords containg...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 24 Oct 2021 11:17:04 +0000 (13:17 +0200)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 24 Oct 2021 11:17:04 +0000 (13:17 +0200)
includes/ui/ui_input.inc
install/index.php
install/isession.inc

index 0b59aaaac15cce9fefa937f56d37de597de0cc0a..7f680eaf8a05d5368174e6c550f7125fdaec30ea 100644 (file)
@@ -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 "<tr><td class='label'>$label</td>";
-       label_cell("<input type='password' name='$name' size=20 maxlength=20 value='$value' >");
+       label_cell("<input type='password' name='$name' size=32 maxlength=32 value='$value' >");
        echo "</tr>\n";
 }      
 
index 5a2b24bc7b9a65f9a87f5098c542e8aa8acd5a8a..8e44b468f315f607fdfcf51fa82618d3561577ff 100644 (file)
@@ -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'),
index bf21f18b4bf0c68f7003b8dcef0d9cb46456dfd0..b65d52ed0c79ae6e22cbb9f01a08127457df66d4 100644 (file)
@@ -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();