mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
SQL Injection fixed
This commit is contained in:
@@ -178,6 +178,7 @@ class Account {
|
||||
|
||||
private function Login() {
|
||||
global $database,$session,$form;
|
||||
$_POST['user'] = mysql_real_escape_string($_POST['user']);
|
||||
if(!isset($_POST['user']) || $_POST['user'] == "") {
|
||||
$form->addError("user",LOGIN_USR_EMPTY);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user