HESK v3.2.4

This commit is contained in:
Luke Tainton
2021-11-20 10:45:31 +00:00
parent fd87e36f6b
commit 2c117f14cb
180 changed files with 12764 additions and 12390 deletions

View File

@@ -109,7 +109,8 @@ function hesk_testMySQL()
$set['db_pass'] = hesk_input( hesk_POST('s_db_pass') );
$set['db_pfix'] = preg_replace('/[^0-9a-zA-Z_]/', '', hesk_POST('s_db_pfix', 'hesk_') );
// Allow & in password
// Allow & in password and username
$set['db_user'] = str_replace('&', '&', $set['db_user']);
$set['db_pass'] = str_replace('&', '&', $set['db_pass']);
// MySQL tables used by HESK
@@ -232,9 +233,6 @@ function hesk_testMySQL()
return false;
}
// Check PHP version for the mysql(i)_set_charset function
$set['db_vrsn'] = ( version_compare(PHP_VERSION, '5.2.3') >= 0 ) ? 1 : 0;
// Some tables weren't found, show an error
if (count($tables) > 0)
{