From 6e93150ec206d524e69f71536f32c6d91c749d30 Mon Sep 17 00:00:00 2001 From: bkruse Date: Fri, 25 Jul 2008 17:21:46 +0000 Subject: 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 --- main/http.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'main') 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); } -- cgit v1.2.3