mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Fix multiple variable cleanup in private messaging (#97)
torrentpier/torrentpier#462
This commit is contained in:
parent
2cac1d608e
commit
ac15a638ba
@ -894,9 +894,7 @@ else if ( $submit || $refresh || $mode != '' )
|
||||
{
|
||||
if ( !empty($_POST['username']) )
|
||||
{
|
||||
$to_username = clean_username($_POST['username']);
|
||||
$to_username_sql = DB()->escape($to_username);
|
||||
$to_userdata = get_userdata ($to_username_sql);
|
||||
$to_userdata = get_userdata($_POST['username']);
|
||||
|
||||
if (!$to_userdata || $to_userdata['user_id'] == GUEST_UID)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user