Skip to content
Snippets Groups Projects
Commit f1ab4178 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #1943 remove some characters

parent cfbc852e
No related branches found
No related tags found
No related merge requests found
......@@ -169,8 +169,20 @@ class webService {
$_SESSION['user']['UserId'] = $_SERVER["PHP_AUTH_USER"];
$password = $_SERVER["PHP_AUTH_PW"];
}
$userID = str_replace('\'', '', $_SESSION['user']['UserId']);
$userID = str_replace('=', '', $userID);
$userID = str_replace('"', '', $userID);
$userID = str_replace('*', '', $userID);
$userID = str_replace(';', '', $userID);
$userID = str_replace('--', '', $userID);
$userID = str_replace(',', '', $userID);
$userID = str_replace('$', '', $userID);
$userID = str_replace('>', '', $userID);
$userID = str_replace('<', '', $userID);
$connexion->query("select * from " . $_SESSION['tablename']['users']
. " where user_id = '" . $_SESSION['user']['UserId']
. " where user_id = '" . $userID
. "' and password = '" . md5($password) . "' and STATUS <> 'DEL'");
//$connexion->show();exit;
if ($connexion->nb_result() > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment