Module: kamailio Branch: 5.8 Commit: 1daebf7d1d80afb53ff5adde1df012556fd9e8d1 URL: https://github.com/kamailio/kamailio/commit/1daebf7d1d80afb53ff5adde1df012556fd9e8d1
Author: Henning Westerholt <[email protected]> Committer: Henning Westerholt <[email protected]> Date: 2025-12-12T14:00:00Z Revert "xhttp_prom: don't sanitize tag values in exported metrics (#4519)" This reverts commit 7a3326c9d0663eb44a912b39065f60783b475697. --- Modified: src/modules/xhttp_prom/prom.c --- Diff: https://github.com/kamailio/kamailio/commit/1daebf7d1d80afb53ff5adde1df012556fd9e8d1.diff Patch: https://github.com/kamailio/kamailio/commit/1daebf7d1d80afb53ff5adde1df012556fd9e8d1.patch --- diff --git a/src/modules/xhttp_prom/prom.c b/src/modules/xhttp_prom/prom.c index 19a4f979843..5ddcf3e9345 100644 --- a/src/modules/xhttp_prom/prom.c +++ b/src/modules/xhttp_prom/prom.c @@ -194,12 +194,6 @@ static int metric_generate( return -1; } - /* xhttp_prom_tags_braces is not sanitized any more because UTF-8 characters are allowed */ - if(prom_body_printf(ctx, "%s", xhttp_prom_tags_braces) == -1) { - LM_ERR("Fail to print\n"); - return -1; - } - if(prom_body_printf(ctx, " %lu %" PRIu64 "\n", counter_val, (uint64_t)ts) == -1) { LM_ERR("Fail to print\n"); _______________________________________________ Kamailio - Development Mailing List -- [email protected] To unsubscribe send an email to [email protected] Important: keep the mailing list in the recipients, do not reply only to the sender!
