diff options
author | bkruse <bkruse@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-25 17:21:46 +0000 |
---|---|---|
committer | bkruse <bkruse@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-07-25 17:21:46 +0000 |
commit | 6e93150ec206d524e69f71536f32c6d91c749d30 (patch) | |
tree | 7cc721fd4fec86fca316d7203e98f19b00305980 | |
parent | 7804f196c004f4a05df5ac415d071524bc190030 (diff) |
Committing a fix that was introduced a long time
ago (does not affect 1.4), where you would pass
a pointer to the end of a character array, and
ast_uri_decode would do no good.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133651 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | main/http.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/main/http.c b/main/http.c index 3e6f9d0f6..77ed8a12f 100644 --- a/main/http.c +++ b/main/http.c @@ -400,10 +400,13 @@ void ast_http_uri_unlink_all_with_key(const char *key) */ static void http_decode(char *s) { - for (;*s; s++) { - if (*s == '+') - *s = ' '; + char *t; + + for (t = s; *t; t++) { + if (*t == '+') + *t = ' '; } + ast_uri_decode(s); } |