X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fcreate_coy.php;h=03267f96ef757f6968f59043de9f6eb97c387404;hb=f821f29324e963437132a3f6fa7c57fcef5c5f0e;hp=0366e76c2a382de99b970a4e52f1957d7eb6ddb9;hpb=577328a5a3a3d5cd6e2252798a355fa20a8f591e;p=fa-stable.git diff --git a/admin/create_coy.php b/admin/create_coy.php index 0366e76c..03267f96 100644 --- a/admin/create_coy.php +++ b/admin/create_coy.php @@ -109,7 +109,8 @@ function handle_submit($selected_id) if ($new) { $db_connections[$selected_id]['host'] = $_POST['host']; $db_connections[$selected_id]['dbuser'] = $_POST['dbuser']; - $db_connections[$selected_id]['dbpassword'] = $_POST['dbpassword']; + $db_connections[$selected_id]['dbpassword'] = html_entity_decode($_POST['dbpassword'], ENT_QUOTES, + $_SESSION['language']->encoding=='iso-8859-2' ? 'ISO-8859-1' : $_SESSION['language']->encoding); $db_connections[$selected_id]['dbname'] = $_POST['dbname']; if (is_numeric($_POST['tbpref'])) { @@ -245,7 +246,7 @@ function display_companies() $coyno = user_company(); echo " -