Fix the shrink_number to not remove the trailing '.'

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2-netsec
Mark Spencer 21 years ago
parent 898a67b80e
commit e5091a2b33

@ -589,8 +589,12 @@ void ast_shrink_phone_number(char *n)
if (bracketed)
n[y++] = n[x];
break;
case '.':
if (!n[x+1])
n[y++] = n[x];
break;
default:
if (!strchr("( ).", n[x]))
if (!strchr("( )", n[x]))
n[y++] = n[x];
}
}

Loading…
Cancel
Save