mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Fix multiple variable cleanup in private messaging
Signed-off-by: Yuriy Pikhtarev <iglix@me.com>
This commit is contained in:
parent
74147160f6
commit
194e6974d8
1 changed files with 1 additions and 3 deletions
|
@ -779,9 +779,7 @@ if ($mode == 'read') {
|
|||
|
||||
if ($submit) {
|
||||
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) {
|
||||
$error = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue