changeset 26:fdae7ab30cfc

allow normal and terminator versions of tags
author carl
date Fri, 21 May 2004 21:55:38 -0700
parents 6176e7b2e8af
children 43a4f6b3e668
files sendmail.st src/dnsbl.cpp
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
Binary file sendmail.st has changed
--- 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;