git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@905 77e5149b-7576-45b1-b177-96237e5ba77b
| ... | ... |
@@ -1,3 +1,7 @@ |
| 1 |
+Mon Sep 20 10:44:35 BST 2004 (trog) |
|
| 2 |
+----------------------------------- |
|
| 3 |
+* libclamav/htmlnorm.c: Simplify handling of NL chars, treat as a space. |
|
| 4 |
+ |
|
| 1 | 5 |
Mon Sep 20 10:09:55 BST 2004 (njh) |
| 2 | 6 |
---------------------------------- |
| 3 | 7 |
* clamav-milter: Change to clamd.conf |
| ... | ... |
@@ -490,14 +490,8 @@ static int cli_html_normalise(int fd, m_area_t *m_area, const char *dirname, tag |
| 490 | 490 |
} |
| 491 | 491 |
while (*ptr) {
|
| 492 | 492 |
if (*ptr == '\n') {
|
| 493 |
- if (state == HTML_COMMENT) {
|
|
| 494 |
- html_output_c(file_buff_o1, NULL, ' '); |
|
| 495 |
- } else if ((state != HTML_SKIP_WS) && |
|
| 496 |
- (state != HTML_TRIM_WS) && |
|
| 497 |
- (state != HTML_PROCESS_TAG)) {
|
|
| 498 |
- html_output_c(file_buff_o1, file_buff_o2, ' '); |
|
| 499 |
- } |
|
| 500 |
- ptr++; |
|
| 493 |
+ /* Convert it to a space and re-process */ |
|
| 494 |
+ *ptr = ' '; |
|
| 501 | 495 |
continue; |
| 502 | 496 |
} |
| 503 | 497 |
if (*ptr == '\r') {
|