mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
Merge branch 'master' into develop
This commit is contained in:
@@ -1304,11 +1304,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