# HG changeset patch # User carl # Date 1085201738 25200 # Node ID fdae7ab30cfcf9a1eefef08d4cce7875d8e76873 # Parent 6176e7b2e8afc4d531c98a2abbdccc60bff19cd2 allow normal and terminator versions of tags diff -r 6176e7b2e8af -r fdae7ab30cfc sendmail.st Binary file sendmail.st has changed diff -r 6176e7b2e8af -r fdae7ab30cfc src/dnsbl.cpp --- a/src/dnsbl.cpp Fri May 21 21:45:36 2004 -0700 +++ b/src/dnsbl.cpp Fri May 21 21:55:38 2004 -0700 @@ -505,8 +505,10 @@ } } host = NULL; + int bin = priv.memory->binary_tags; int bad = priv.memory->bad_html_tags; int lim = priv.pc->bad_tag_limit; + if (bin > bad) return oksofar; // probably .zip or .tar.gz with random content if ((bad > lim) && (lim > 0)) return reject; return oksofar; } @@ -893,7 +895,10 @@ case htmltag: { char *tag = next_token(delim); if (!tag) break; // no html tag value + char buf[200]; + snprintf(buf, sizeof(buf), "/%s", tag); dc.html_tags.insert(tag); + dc.html_tags.insert(register_string(buf)); processed = true; } break;