Merge in SNORT/snort3 from ~DZIKRATY/snort3:fix_http_param_2 to master
Squashed commit of the following:
commit
2a31c83bb0c0dea22e12f89f11d812e6067f5bc7
Author: Denys Zikratyi -X (dzikraty - SOFTSERVE INC at Cisco) <dzikraty@cisco.com>
Date: Thu Jun 26 09:20:08 2025 -0400
http_param: clear body http_param after each flush
session_data->partial_mime_last_complete[source_id] = last_attachment_complete;
}
+ if (request != nullptr)
+ request->clear_body_params();
+
HttpMsgSection::clear();
}
return *body_params;
}
+void HttpMsgRequest::clear_body_params()
+{
+ if (body_params != nullptr)
+ body_params->clear();
+}
+
void HttpMsgRequest::gen_events()
{
if (*transaction->get_infractions(source_id) & INF_BAD_REQ_LINE)
HttpUri* get_http_uri() { return uri; }
ParameterMap& get_query_params();
ParameterMap& get_body_params();
+ void clear_body_params();
static bool is_webdav(HttpEnums::MethodId method)
{
const Field& rb = body->get_detect_data();
const Field& nb = body->get_classic_client_body();
- if (rb.length() > 0 && nb.length() > 0 && body->is_first())
+ if (rb.length() > 0 && nb.length() > 0)
{
HttpQueryParser parser(rb.start(), rb.length(),
nb.start(), nb.length(), uri_config,