diff options
author | David Vossel <dvossel@digium.com> | 2009-12-07 23:28:51 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2009-12-07 23:28:51 +0000 |
commit | e44e6b33b3d6aa2969974d44472e2407c2db3f29 (patch) | |
tree | 2a0b24d42590516e76d8b640eea8fee96deb32c8 /main | |
parent | 69fcfd2b45d4be42f9d67c5416fb1275163ad709 (diff) |
fixes incorrect logic in ast_uri_encode
issue #16299
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@233611 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c index e0005a6b7..b6f9b5176 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; |