aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/content_disposition_parser.rl
diff options
context:
space:
mode:
Diffstat (limited to 'src/ragel/content_disposition_parser.rl')
-rw-r--r--src/ragel/content_disposition_parser.rl2
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;
}