mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
- use preg_replace() instead of sanitizeString()
This commit is contained in:
parent
d444ff3488
commit
bbb8e4cd04
|
@ -41,7 +41,7 @@ if ($action == "adduser") {
|
|||
$name = sanitizeString($_POST["name"]);
|
||||
$email = sanitizeString($_POST["email"]);
|
||||
$comment = sanitizeString($_POST["comment"]);
|
||||
$role = sanitizeString($_POST["role"]);
|
||||
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
|
||||
$isHidden = (isset($_POST["ishidden"]) && $_POST["ishidden"]==1 ? 1 : 0);
|
||||
|
||||
if (is_object($dms->getUserByLogin($login))) {
|
||||
|
@ -150,7 +150,7 @@ else if ($action == "edituser") {
|
|||
$name = sanitizeString($_POST["name"]);
|
||||
$email = sanitizeString($_POST["email"]);
|
||||
$comment = sanitizeString($_POST["comment"]);
|
||||
$role = sanitizeString($_POST["role"]);
|
||||
$role = preg_replace('/[^0-2]+/', '', $_POST["role"]);
|
||||
$isHidden = (isset($_POST["ishidden"]) && $_POST["ishidden"]==1 ? 1 : 0);
|
||||
|
||||
if ($editedUser->getLogin() != $login)
|
||||
|
|
Loading…
Reference in New Issue
Block a user