mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Merge pull request #462 from Exileum/bugfix/privmsg_clean_username
Fix multiple variable cleanup in private messaging
This commit is contained in:
commit
5078ed646d
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