commit 1496f88: [Minor] Parse remaning content when reaching html limit
Vsevolod Stakhov
vsevolod at rspamd.com
Tue Jun 13 21:14:03 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-06-13 22:10:17 +0100
URL: https://github.com/rspamd/rspamd/commit/1496f881cf050fd73a558eaf30e051d72c12e549 (HEAD -> master)
[Minor] Parse remaning content when reaching html limit
---
src/libserver/html/html.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx
index 91a59c8d0..a848a25d3 100644
--- a/src/libserver/html/html.cxx
+++ b/src/libserver/html/html.cxx
@@ -2161,7 +2161,8 @@ html_process_input(struct rspamd_task *task,
* further algorithms can skip words when auto *pool = task->task_pool;there are too many.
* It is still unclear about urls though...
*/
- hc->parsed.append(end, in->len - process_size);
+ html_append_parsed(hc, {end, in->len - process_size}, false,
+ end - start, hc->parsed);
}
if (!hc->parsed.empty()) {
More information about the Commits
mailing list