fixes incorrect logic in ast_uri_encode
authorDavid Vossel <dvossel@digium.com>
Mon, 7 Dec 2009 23:28:51 +0000 (23:28 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 7 Dec 2009 23:28:51 +0000 (23:28 +0000)
issue #16299

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233611 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/utils.c

index e0005a6..b6f9b51 100644 (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;