Module: kamailio
Branch: 4.2
Commit: 7140f86bc020ef60d2b35b79e9d051a415372036
URL:
https://github.com/kamailio/kamailio/commit/7140f86bc020ef60d2b35b79e9d051a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-03-09T12:38:53+01:00
textops: stop after substituting in first header if flag f is set for subst_hf()
- reported by Julia Boudniatsky
(cherry picked from commit 0f5aaac47a6002bbd4fdfaf0e6897d307c2cbc0e)
---
Modified: modules/textops/textops.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7140f86bc020ef60d2b35b79e9d051a…
Patch:
https://github.com/kamailio/kamailio/commit/7140f86bc020ef60d2b35b79e9d051a…
---
diff --git a/modules/textops/textops.c b/modules/textops/textops.c
index 8e9bcb7..50a6f07 100644
--- a/modules/textops/textops.c
+++ b/modules/textops/textops.c
@@ -2889,6 +2889,9 @@ static int subst_hf_f(struct sip_msg *msg, char *str_hf, char
*subst, char *flag
} else {
hfl = hf;
}
+ /* if flags set for first header, then all done */
+ if(flags!=NULL && *flags=='f')
+ return ret;
}
if(hfl!=NULL)
{