Skip to content

Commit

Permalink
Fixed issue #6208 : Adding user to user group leads to error message
Browse files Browse the repository at this point in the history
Dev : Cannot redeclare replacenewline was already fixed with #06201
Dev : replace sanitize_int by intval : need -1 for uid
  • Loading branch information
Shnoulle committed Jun 13, 2012
1 parent 714907c commit b6ea136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/userrighthandling.php
Expand Up @@ -15,8 +15,8 @@
//Security Checked: POST/GET/DB/SESSION
//Ensure script is not run directly, avoid path disclosure
if (!isset($dbprefix) || isset($_REQUEST['dbprefix'])) {die("Cannot run this script directly");}
if (isset($_POST['uid'])) {$postuserid=sanitize_int($_POST['uid']);}
if (isset($_POST['ugid'])) {$postusergroupid=sanitize_int($_POST['ugid']);}
if (isset($_POST['uid'])) {$postuserid=intval($_POST['uid']);}
if (isset($_POST['ugid'])) {$postusergroupid=intval($_POST['ugid']);}

if (get_magic_quotes_gpc())
{$_POST = array_map('recursive_stripslashes', $_POST);}
Expand Down

0 comments on commit b6ea136

Please sign in to comment.