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

usermailaddr() will no longer return an address with double @domains.

parent c159b5bf
No related branches found
No related tags found
No related merge requests found
......@@ -1417,6 +1417,10 @@ char* DLLCALL usermailaddr(scfg_t* cfg, char* addr, char* name)
{
int i;
if(strchr(name,'@')!=NULL) { /* Avoid double-@ */
strcpy(addr,name);
return(addr);
}
if(strchr(name,'.') && strchr(name,' '))
sprintf(addr,"\"%s\"@",name);
else {
......
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