[OpenSIPS-Users] Error in re.subst transformation

Alexander Kogan akogan at 5gfuture.com
Thu Jan 18 10:51:40 UTC 2024


Hi,

There's an error in re.subst transformation, it's not whitespace-safe. 
Is this patch OK?

Index: transformations.c
===================================================================
--- transformations.c   (revision 13886)
+++ transformations.c   (working copy)
@@ -3630,7 +3630,7 @@
                 }
                 p++;
                 LM_DBG("preparing to parse param\n");
-               if (tr_parse_sparam(p, in, &tp, 0) == NULL)
+               if (tr_parse_sparam(p, in, &tp, 1) == NULL)
                         goto error;
                 t->params = tp;
                 tp = 0;

-- 
Best regards,
Alexander Kogan,
Director of R&D
5g Future
http://5gfuture.com




More information about the Users mailing list