From ae55ab2bf6968950f5ce904180b02b7b0547ab69 Mon Sep 17 00:00:00 2001 From: ragusaa <54862477+ragusaa@users.noreply.github.com> Date: Thu, 18 Jul 2024 14:16:21 -0400 Subject: [PATCH] Update libclamav/scanners.c Co-authored-by: Micah Snyder --- libclamav/scanners.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/libclamav/scanners.c b/libclamav/scanners.c index dde7c086c0..5f252523e2 100644 --- a/libclamav/scanners.c +++ b/libclamav/scanners.c @@ -2529,23 +2529,6 @@ static void save_urls(cli_ctx *ctx, tag_arguments_t *hrefs, form_data_t *form_da cli_jsonstr(ary, NULL, (const char *)form_data->urls[i]); } } - -#if 0 - if (!bAdded) { - return; - } - - json_object *ary = cli_jsonarray(ctx->wrkproperty, HTML_URLS_JSON_KEY); - if (ary) { - for (i = 0; i < hrefs->count; i++) { - if (is_url((const char *)hrefs->value[i])) { - cli_jsonstr(ary, NULL, (const char *)hrefs->value[i]); - } - } - } else { - cli_dbgmsg("[cli_scanhtml] Failed to add \"%s\" entry JSON array\n", HTML_URLS_JSON_KEY); - } -#endif } static cl_error_t cli_scanhtml(cli_ctx *ctx)