From 313e18e3a26bb9d6e5f30233dd84b78bd5fc8243 Mon Sep 17 00:00:00 2001 From: m8522s <43844394+m8522s@users.noreply.github.com> Date: Fri, 29 Nov 2024 15:50:18 +0100 Subject: [PATCH] include web forms and JSON in content filter --- services/content_filtering/srv_content_filtering.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/content_filtering/srv_content_filtering.c b/services/content_filtering/srv_content_filtering.c index 1ad3c25..6c282ff 100644 --- a/services/content_filtering/srv_content_filtering.c +++ b/services/content_filtering/srv_content_filtering.c @@ -237,7 +237,7 @@ int srv_content_filtering_check_preview_handler(char *preview_data, int preview_ if (!content_type && req->type == ICAP_REQMOD) content_type = ci_http_request_get_header(req, "Content-Type"); - if (content_type && (strstr(content_type, "text/") != NULL || strstr(content_type, "application/javascript") != NULL)) + if (content_type && (strstr(content_type, "text/") != NULL || strstr(content_type, "application/javascript") != NULL || strstr(content_type, "application/x-www-form-urlencoded") != NULL || strstr(content_type, "application/json") != NULL || strstr(content_type, "multipart/form-data") != NULL )) srv_content_filtering_data->isText = 1; else if (!srv_content_filtering_data->profile->anyContentType){ ci_debug_printf(4, "Srv_Content_Filtering content type %s will not process\n", content_type);