diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-10 20:18:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2021-09-10 20:18:44 +0100 |
commit | 064a12b377b10d7408b4fcf9ec7861426fb85129 (patch) | |
tree | f843d9882061533e215bb11d360ac2f91be89c93 /src/ragel/content_disposition_parser.rl | |
parent | 6729b60066a4dcf9a38e3e766d829b9932ec5d29 (diff) | |
download | rspamd-064a12b377b10d7408b4fcf9ec7861426fb85129.tar.gz rspamd-064a12b377b10d7408b4fcf9ec7861426fb85129.zip |
[Minor] Try to deal with broken CD headers
Diffstat (limited to 'src/ragel/content_disposition_parser.rl')
-rw-r--r-- | src/ragel/content_disposition_parser.rl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ragel/content_disposition_parser.rl b/src/ragel/content_disposition_parser.rl index cdef4db46..f1b0172b7 100644 --- a/src/ragel/content_disposition_parser.rl +++ b/src/ragel/content_disposition_parser.rl @@ -122,5 +122,5 @@ rspamd_content_disposition_parser (const char *data, size_t len, struct rspamd_c free (st_storage.data); } - return cd->type != RSPAMD_CT_UNKNOWN; + return cd->attrs != NULL || cd->type != RSPAMD_CT_UNKNOWN; } |