Skip to content

Commit 9d3550b

Browse files
committed
Removed typo (input is not input but $data['db_password'])
1 parent 71f5524 commit 9d3550b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/includes/core_class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function write_config($data)
118118
$database_file = file_get_contents($template_path);
119119

120120
// Sanitize DB Password from single quotes
121-
$sanitized_db_pwd = preg_replace("/\\\/i",'\\\\',$input); // Escape the Escape char ( '\' becomes '\\' )
121+
$sanitized_db_pwd = preg_replace("/\\\\/i",'\\\\\\\\',$data['db_password']); // Escape the Escape char ( '\' becomes '\\' )
122122
$sanitized_db_pwd = preg_replace("/\'/i",'\\\\\'',$sanitized_db_pwd); // Escape the ' ( ' becomes \' )
123123

124124
$new = str_replace("%HOSTNAME%", $data['db_hostname'], $database_file);

0 commit comments

Comments
 (0)