mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
Missing escaping while writing config files #876
This commit is contained in:
parent
8b0ad9388e
commit
52d48353a5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user