mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°941 - Backup/Windows %, ! or " not allowed in password
This commit is contained in:
@@ -1307,11 +1307,11 @@ EOF
|
||||
$sDBName = $aParameters['db_name'];
|
||||
|
||||
$bIsWindows = (array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER));
|
||||
if ($bIsWindows && (strpos($sDBPwd, '%') !== false))
|
||||
if ($bIsWindows && (preg_match('@([%!"])@',$sDBPwd) > 0))
|
||||
{
|
||||
// Unsuported Password, disable the "Next" button
|
||||
$oPage->add_ready_script('$("#wiz_form").data("db_connection", "error");');
|
||||
$oPage->add_ready_script('$("#db_info").html("<img src=\'../images/error.png\'/> Database password cannot contain % character...");');
|
||||
$oPage->add_ready_script('$("#db_info").html("<img src=\'../images/error.png\'/> On Windows, database password must not contain %, ! or " character");');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user