Fix a critical problem

This commit is contained in:
Yiğit Kerem Oktay 2020-08-16 23:17:35 +03:00 committed by GitHub
parent 8b5e227ff1
commit 7473e18fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -129,8 +129,7 @@ if(isset($_POST['server']) && empty($message))
$db->setSetting($mysqli,"mailer",htmlspecialchars($_POST['mailer'], ENT_QUOTES));
//$config = str_replace("##mailer_email##", htmlspecialchars($_POST['mailer_email'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"mailer_email",htmlspecialchars($_POST['mailer_email'], ENT_QUOTES));
//$config = str_replace("##server##", htmlspecialchars($_POST['server'], ENT_QUOTES), $config);
$db->setSetting($mysqli,"server",htmlspecialchars($_POST['server'], ENT_QUOTES));
$config = str_replace("##server##", htmlspecialchars($_POST['server'], ENT_QUOTES), $config);
$config = str_replace("##database##", htmlspecialchars($_POST['database'], ENT_QUOTES), $config);
$config = str_replace("##user##", htmlspecialchars($_POST['dbuser'], ENT_QUOTES), $config);
$config = str_replace("##password##", htmlspecialchars($_POST['dbpassword'], ENT_QUOTES), $config);