fix: database test input sanitization
This commit is contained in:
parent
ed45d182d1
commit
5104f0205b
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ switch ($_SERVER['REQUEST_METHOD']) {
|
|||
$dsn = 'mysql:host=' . $_POST['DATABASE_HOST'] . ';dbname=' . $_POST['DATABASE_NAME'] . ';port=3306;charset=utf8';
|
||||
$pdo = new \PDO(
|
||||
$dsn,
|
||||
$_POST['DATABASE_USER'],
|
||||
Sanitiser::getText($_POST['DATABASE_USER']),
|
||||
$_POST['DATABASE_PASSWORD']
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue