We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f5524 commit 9d3550bCopy full SHA for 9d3550b
install/includes/core_class.php
@@ -118,7 +118,7 @@ function write_config($data)
118
$database_file = file_get_contents($template_path);
119
120
// Sanitize DB Password from single quotes
121
- $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 '\\' )
122
$sanitized_db_pwd = preg_replace("/\'/i",'\\\\\'',$sanitized_db_pwd); // Escape the ' ( ' becomes \' )
123
124
$new = str_replace("%HOSTNAME%", $data['db_hostname'], $database_file);
0 commit comments