Skip to content

Commit

Permalink
Update libclamav/scanners.c
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Snyder <[email protected]>
  • Loading branch information
ragusaa and micahsnyder authored Jul 18, 2024
1 parent b429485 commit ae55ab2
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions libclamav/scanners.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ae55ab2

Please sign in to comment.