summaryrefslogtreecommitdiff
path: root/main/utils.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2008-01-16 22:20:45 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2008-01-16 22:20:45 +0000
commit81e421284d6e0ab35cf9d6b0aa049266dd70ad67 (patch)
tree983dffbed2bd5e6e9acdfb150364888d3004c60a /main/utils.c
parent6aaa99230115240b6bcf757183d16244865e1232 (diff)
New module res_config_curl (closes issue #11747)
Reported by: Corydon76 Patches: res_config_curl.c uploaded by Corydon76 (license 14) 20080116__bug11747.diff.txt uploaded by Corydon76 (license 14) Tested by: jmls git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98981 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/utils.c')
-rw-r--r--main/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/utils.c b/main/utils.c
index bf0a7b2ad..1b91781fa 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -451,7 +451,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 (((unsigned char) *ptr) > 127 || (doreserved && strchr(reserved, *ptr)) ) {
+ if ((*ptr < 32 || (unsigned char) *ptr) > 127 || (doreserved && strchr(reserved, *ptr)) ) {
/* Oops, we need to start working here */
if (!buf) {
buf = outbuf;