Removed typo (input is not input but $data['db_password'])

This commit is contained in:
int2001
2024-03-10 14:34:41 +00:00
parent 71f55240ce
commit 9d3550bde5

View File

@@ -118,7 +118,7 @@ class Core
$database_file = file_get_contents($template_path);
// Sanitize DB Password from single quotes
$sanitized_db_pwd = preg_replace("/\\\/i",'\\\\',$input); // Escape the Escape char ( '\' becomes '\\' )
$sanitized_db_pwd = preg_replace("/\\\\/i",'\\\\\\\\',$data['db_password']); // Escape the Escape char ( '\' becomes '\\' )
$sanitized_db_pwd = preg_replace("/\'/i",'\\\\\'',$sanitized_db_pwd); // Escape the ' ( ' becomes \' )
$new = str_replace("%HOSTNAME%", $data['db_hostname'], $database_file);