mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-01 06:28:46 +02:00
N°941 - Backup/Windows %, ! or " not allowed in password
This commit is contained in:
@@ -84,10 +84,10 @@ function CheckDBPasswordInNewConfig($sSafeContent)
|
||||
{
|
||||
$bIsWindows = (array_key_exists('WINDIR', $_SERVER) || array_key_exists('windir', $_SERVER));
|
||||
|
||||
if ($bIsWindows && (preg_match("@'db_pwd' => '[^%']+',@", $sSafeContent) === 0))
|
||||
if ($bIsWindows && (preg_match("@'db_pwd' => '[^%!\"']+',@", $sSafeContent) === 0))
|
||||
{
|
||||
// Unsupported Password
|
||||
throw new Exception("Database password should not contain % character (backups won't work)...");
|
||||
throw new Exception("On Windows, database password must not contain %, ! or \" character (backups won't work)...");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user