Skip to content

Commit

Permalink
[E] Check user existence before sending message #1883
Browse files Browse the repository at this point in the history
  • Loading branch information
lianglee committed Apr 16, 2021
1 parent 53de6b3 commit 3b4a517
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/OssnMessages/actions/message/send.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
exit;
}
$to = input('to');
//[E] Check user existence before sending message #1883
if(!ossn_user_by_guid($to)) {
echo 0;
exit;
}
if ($message_id = $send->send(ossn_loggedin_user()->guid, $to, $message)) {
$user = ossn_user_by_guid(ossn_loggedin_user()->guid);

Expand Down

0 comments on commit 3b4a517

Please sign in to comment.