From 24669125e4f1e77c053264a11f11f331eb7e7c78 Mon Sep 17 00:00:00 2001 From: Ken Rice Date: Wed, 10 Jul 2013 12:08:54 -0500 Subject: [PATCH] FS-5555 --resolve --- src/include/switch_utils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index 99ff664868..97cdfcc5cc 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -604,12 +604,15 @@ static inline char *switch_sanitize_number(char *number) switch_assert(number); - if (!(strchr(p, '/') || strchr(p, ':') || strchr(p, '@'))) { + if (!(strchr(p, '/') || strchr(p, ':') || strchr(p, '@') || strchr(p, '%'))) { return number; } while ((q = strrchr(p, '@'))) *q = '\0'; + + while ((q = strrchr(p, '%'))) + *q = '\0'; for (i = 0; i < (int) strlen(warp); i++) { while (p && (q = strchr(p, warp[i])))