From: David Vossel Date: Mon, 7 Dec 2009 23:29:48 +0000 (+0000) Subject: Merged revisions 233611 via svnmerge from X-Git-Tag: 1.6.1.12-rc1~3^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=692520d60616ca621c4bc6e86b2c62e582601202;p=thirdparty%2Fasterisk.git 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.1@233613 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/utils.c b/main/utils.c index 66873646ef..6204423f7c 100644 --- a/main/utils.c +++ b/main/utils.c @@ -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;