Changeset f183917


Ignore:
Timestamp:
Jan 23, 2012, 6:41:26 PM (9 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.9
Children:
919cbf2
Parents:
f7c0730
git-author:
Anders Kaseorg <andersk@mit.edu> (10/22/11 21:18:24)
git-committer:
Anders Kaseorg <andersk@mit.edu> (01/23/12 18:41:26)
Message:
Allow zsender spoofing on cross-realm classes

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    rf7c0730 rf183917  
    711711  if (!strcmp(recipient, "@")) {
    712712    notice.z_recipient=zstr("");
    713     if (*owl_global_get_zsender(&g))
    714       notice.z_sender = zsender = long_zuser(owl_global_get_zsender(&g));
    715713  } else {
    716714    notice.z_recipient=zstr(recipient);
    717715  }
     716  if (!owl_zwrite_recip_is_personal(recipient) && *owl_global_get_zsender(&g))
     717    notice.z_sender = zsender = long_zuser(owl_global_get_zsender(&g));
    718718  notice.z_default_format=zstr("Class $class, Instance $instance:\nTo: @bold($recipient) at $time $date\nFrom: @bold{$1 <$sender>}\n\n$2");
    719719  if (opcode) notice.z_opcode=zstr(opcode);
Note: See TracChangeset for help on using the changeset viewer.