dect
/
asterisk
Archived
13
0
Fork 0

fixes incorrect logic in ast_uri_encode

issue #16299


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@233611 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
dvossel 2009-12-07 23:28:51 +00:00
parent 566c096197
commit 9f320becac
1 changed files with 1 additions and 1 deletions

View File

@ -392,7 +392,7 @@ char *ast_uri_encode(const char *string, char *outbuf, int buflen, int doreserve
/* If there's no characters to convert, just go through and don't do anything */
while (*ptr) {
if ((*ptr < 32 || (unsigned char) *ptr) > 127 || (doreserved && strchr(reserved, *ptr)) ) {
if ((*ptr < 32) || (doreserved && strchr(reserved, *ptr))) {
/* Oops, we need to start working here */
if (!buf) {
buf = outbuf;