summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/http.c9
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);
}