@SABITHSAHEB commented on this pull request.
> @@ -783,9 +783,9 @@ int replace(regmatch_t *pmatch, char *string, char
> *replacement, str *result)
if(i < len - 1) {
if(isdigit((unsigned char)replacement[i + 1])) {
digit = replacement[i + 1] - '0';
- if(pmatch[digit].rm_so != -1) {
+ if(digit < 6 && pmatch[digit].rm_so !=
-1) {
Done — switched to SR_RE_MAX_MATCH. Moved the #define above replace() so it's
in scope, since it was defined just below the function.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4796#discussion_r3480924676
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4796/review/[email protected]>_______________________________________________
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!