FS-5555 --resolve

This commit is contained in:
Ken Rice 2013-07-10 12:08:54 -05:00
parent 27ccb69c94
commit 24669125e4
1 changed files with 4 additions and 1 deletions

View File

@ -604,13 +604,16 @@ 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])))
p = q + 1;