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;