comparison 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
comparison
equal deleted inserted replaced
173:83fe0be032c1 174:da0c41b9f672
496 ofs.open(fn); 496 ofs.open(fn);
497 if (!ofs.fail()) { 497 if (!ofs.fail()) {
498 for (autowhite_sent::iterator i=rcpts.begin(); i!=rcpts.end(); i++) { 498 for (autowhite_sent::iterator i=rcpts.begin(); i!=rcpts.end(); i++) {
499 char *who = (*i).first; 499 char *who = (*i).first;
500 int when = (*i).second; 500 int when = (*i).second;
501 ofs << who << " " << when << endl; 501 if (!strchr(who, ' ')) {
502 ofs << who << " " << when << endl;
503 }
502 } 504 }
503 } 505 }
504 ofs.close(); 506 ofs.close();
505 need = false; 507 need = false;
506 loaded = time(NULL); // update load time 508 loaded = time(NULL); // update load time