diff options
author | Brandon Kruse <bkruse@digium.com> | 2008-07-25 17:21:46 +0000 |
---|---|---|
committer | Brandon Kruse <bkruse@digium.com> | 2008-07-25 17:21:46 +0000 |
commit | dff6f087845124fc32d9ce9d0f7b9aea00042b90 (patch) | |
tree | 7cc721fd4fec86fca316d7203e98f19b00305980 | |
parent | 9c35faac65edb471ab7cd2799500a636b5da6d57 (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: https://origsvn.digium.com/svn/asterisk/trunk@133651 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-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); } |