Skip to content
Snippets Groups Projects
Commit dea38eb9 authored by rswindell's avatar rswindell
Browse files

Fix problem reported by Lord Time (Rob Starr):

With the change to smblib of March 14 (smbstr.c 1.29), netaddr_type() will
parse generic words as QWK-network addresses. The fix here is to only
attempt a net-type lookup if the 'to' field contains an '@'.
parent b4da6e1f
No related branches found
No related tags found
No related merge requests found
......@@ -25,11 +25,13 @@ if(sub!='mail') {
}
}
else {
hdrs.to_net_type=netaddr_type(to);
hdrs.to_net_type = NET_NONE;
var at = to.indexOf('@');
if(at > 0)
hdrs.to_net_type=netaddr_type(to);
if(hdrs.to_net_type!=NET_NONE) {
if(user.security.restrictions&UFLAG_M)
error("You do not have permission to send netmail");
var at = to.indexOf('@');
if(hdrs.to_net_type!=NET_INTERNET && at > 0) {
hdrs.to_net_addr = to.slice(at + 1);
to = to.slice(0, at);
......
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