From bad5b138b9ae1a16714574ff58451c1b5d3c460d Mon Sep 17 00:00:00 2001 From: David Vossel Date: Mon, 7 Dec 2009 23:30:14 +0000 Subject: [PATCH] Merged revisions 233611 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ........ r233611 | dvossel | 2009-12-07 17:28:51 -0600 (Mon, 07 Dec 2009) | 4 lines fixes incorrect logic in ast_uri_encode issue #16299 ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@233614 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/utils.c b/main/utils.c index f55fe42714..9c92af6d7a 100644 --- a/main/utils.c +++ b/main/utils.c @@ -389,7 +389,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; -- 2.47.2