Missing escaping while writing config files #876

This commit is contained in:
Ulrich Block 2016-06-27 11:28:39 +02:00
parent 8b0ad9388e
commit 52d48353a5

View File

@ -304,10 +304,10 @@ if ($currentStep == 2 and count($systemCheckError) == 0) {
// This file was generated by the easy-wi.com installer
" . '$host' . " = '" . $_POST['host'] . "';
" . '$user' . " = '" . $_POST['user'] . "';
" . '$db' . " = '" . $_POST['db'] . "';
" . '$pwd' . " = '" . $_POST['pwd'] . "';
" . '$host' . " = '" . addcslashes($_POST['host'], "'") . "';
" . '$user' . " = '" . addcslashes($_POST['user'], "'") . "';
" . '$db' . " = '" . addcslashes($_POST['db'], "'") . "';
" . '$pwd' . " = '" . addcslashes($_POST['pwd'], "'") . "';
" . '$captcha' . " = 0;
" . '$title' . " = '';
" . '$debug' . " = 0;
@ -329,7 +329,7 @@ if ($currentStep == 2 and count($systemCheckError) == 0) {
// This file was generated by the easy-wi.com installer
$aeskey = "' . $_POST['aeskey'] . '";
$aeskey = "' . addcslashes($_POST['aeskey'], "'") . '";
';
@fwrite($keyFp, $configdata);