comparison src/scanner.cpp @ 50:05957b18b2e6

final changes for 3.3
author carl
date Sat, 10 Jul 2004 09:09:39 -0700
parents 6b79046b18c2
children a84752107aca
comparison
equal deleted inserted replaced
49:4f9e3dc55d38 50:05957b18b2e6
50 } 50 }
51 void recorder::new_tag(char *tag) { 51 void recorder::new_tag(char *tag) {
52 string_set::iterator i = html_tags->find(tag); 52 string_set::iterator i = html_tags->find(tag);
53 if (i == html_tags->end()) { 53 if (i == html_tags->end()) {
54 bad_html_tags++; 54 bad_html_tags++;
55 if (debug_syslog && (bad_html_tags < 10) && (binary_tags < 10)) { 55 if (debug_syslog && (bad_html_tags < 10)) {
56 // only log the first 10 bad tags 56 // only log the first 10 bad tags
57 char buf[200]; 57 char buf[200];
58 snprintf(buf, sizeof(buf), "bad html tag %s", tag); 58 snprintf(buf, sizeof(buf), "bad html tag %s", tag);
59 my_syslog(priv, buf); 59 my_syslog(priv, buf);
60 } 60 }