diff src/context.cpp @ 174:da0c41b9f672

don't whitelist addresses with embedded spaces
author carl
date Sun, 23 Sep 2007 11:20:12 -0700
parents 83fe0be032c1
children e726e1a61ef9
line wrap: on
line diff
--- a/src/context.cpp	Thu Sep 06 09:50:05 2007 -0700
+++ b/src/context.cpp	Sun Sep 23 11:20:12 2007 -0700
@@ -498,9 +498,11 @@
 				for (autowhite_sent::iterator i=rcpts.begin(); i!=rcpts.end(); i++) {
 					char *who = (*i).first;
 					int  when = (*i).second;
+					if (!strchr(who, ' ')) {
 					ofs << who << " " << when << endl;
 				}
 			}
+			}
 			ofs.close();
 			need = false;
 			loaded = time(NULL);	// update load time