aboutsummaryrefslogtreecommitdiff
path: root/src/lib/protocols/fastcgi.c
diff options
context:
space:
mode:
authorVitaly Lavrov <vel21ripn@gmail.com>2024-02-05 21:44:45 +0300
committerGitHub <noreply@github.com>2024-02-05 19:44:45 +0100
commit4543385d107fcc5a7e8632e35d9a60bcc40cb4f4 (patch)
tree1832253db2bbfaef1949a879f3fe8a781977166f /src/lib/protocols/fastcgi.c
parenta4da4467ace84aa7dba718a94b0714aeb101ed9a (diff)
Normalization of host_server_name (#2299)
* Normalization of host_server_name The ndpi_hostname_sni_set() function replaces all non-printable characters with the "?" character and removing whitespace characters at the end of the line. * Added conditional hostname normalization.
Diffstat (limited to 'src/lib/protocols/fastcgi.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/protocols/fastcgi.c b/src/lib/protocols/fastcgi.c
index a96170b8b..6ccd96d43 100644
--- a/src/lib/protocols/fastcgi.c
+++ b/src/lib/protocols/fastcgi.c
@@ -138,7 +138,7 @@ static int fcgi_parse_params(struct ndpi_flow_struct * const flow,
flow->http.method = ndpi_http_str2method((const char*)packet->http_method.ptr,
(u_int16_t)packet->http_method.len);
- ndpi_hostname_sni_set(flow, packet->host_line.ptr, packet->host_line.len);
+ ndpi_hostname_sni_set(flow, packet->host_line.ptr, packet->host_line.len, NDPI_HOSTNAME_NORM_ALL);
ndpi_user_agent_set(flow, packet->user_agent_line.ptr, packet->user_agent_line.len);
if (flow->http.url == NULL && packet->http_url_name.len > 0)