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

FIX #1899 Add warning message in user_id is in wrong format

parent 5753a99d
No related branches found
No related tags found
No related merge requests found
......@@ -365,6 +365,11 @@ class users_controler extends ObjectControler implements ObjectControlerIF
{
$error = "";
$f = new functions();
if (strpos($user->user_id, "'") !== false) {
$error .= _USER_ID . ' '._WRONG_FORMAT . '#';
}
$user->user_id = $f->protect_string_db(
$f->wash($user->user_id, 'no', _THE_ID, 'yes', 0, 128)
);
......
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