From 9d3550bde5dbd5daed89a181986595a6b950ec4e Mon Sep 17 00:00:00 2001 From: int2001 Date: Sun, 10 Mar 2024 14:34:41 +0000 Subject: [PATCH] Removed typo (input is not input but $data['db_password']) --- install/includes/core_class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/includes/core_class.php b/install/includes/core_class.php index ee1dd6088..fabe5dcbd 100644 --- a/install/includes/core_class.php +++ b/install/includes/core_class.php @@ -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);