Escape data before writing to config.php (#38)
This commit is contained in:
parent
3170898364
commit
8b76fadf6d
@ -86,6 +86,13 @@ class Database extends Module {
|
||||
|
||||
}
|
||||
|
||||
# Escape data
|
||||
$host = mysqli_real_escape_string($database, $host);
|
||||
$user = mysqli_real_escape_string($database, $user);
|
||||
$password = mysqli_real_escape_string($database, $password);
|
||||
$name = mysqli_real_escape_string($database, $name);
|
||||
$prefix = mysqli_real_escape_string($database, $prefix);
|
||||
|
||||
# Save config.php
|
||||
$config = "<?php
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user