Skip to content
Snippets Groups Projects
Commit b014247b authored by deuce's avatar deuce
Browse files

Check user.number against hdr.from_ext before parsing attachments.

parent 20eddeac
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,9 @@ hdr=msgbase.get_msg_header(false,id);
if(hdr==undefined) {
error("No such message!");
}
if(sub=='mail' && hdr.from_ext!=user.number)
error("You can only read e-mail attachments addressed to yourself!");
body=msgbase.get_msg_body(false,id);
if(body==undefined) {
error("Can not read message body!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment