diff src/dnsbl.cpp @ 26:fdae7ab30cfc

allow normal and terminator versions of tags
author carl
date Fri, 21 May 2004 21:55:38 -0700
parents 2e23b7184d2b
children 43a4f6b3e668
line wrap: on
line diff
--- 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;