aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-20 20:41:06 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-06-20 20:41:06 +0000
commit30a0d3c9d3944d41c2e9765e15002bf87a7d01a0 (patch)
tree812ef1e5cc080bb8076aaf722abec6f4744612e1 /main/http.c
parenta5df6622bcaace28f113129a214d4d102af374de (diff)
Revert the change made in revision 45474, since this causes other issues.
Issue 10021. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@70493 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/main/http.c b/main/http.c
index c385c34c5..0fafef803 100644
--- a/main/http.c
+++ b/main/http.c
@@ -145,18 +145,6 @@ static const char *ftype2mtype(const char *ftype, char *wkspace, int wkspacelen)
return wkspace;
}
-/* like ast_uri_decode, but replace '+' with ' ' */
-static char *uri_decode(char *buf)
-{
- char *c;
- ast_uri_decode(buf);
- for (c = buf; *c; c++) {
- if (*c == '+')
- *c = ' ';
- }
- return buf;
-}
-
static struct ast_str *static_callback(struct sockaddr_in *req, const char *uri, struct ast_variable *vars, int *status, char **title, int *contentlength)
{
struct ast_str *result;
@@ -583,7 +571,7 @@ static struct ast_str *handle_uri(struct sockaddr_in *sin, char *uri, int *statu
while ((val = strsep(&params, "&"))) {
var = strsep(&val, "=");
if (val)
- uri_decode(val);
+ ast_uri_decode(val);
else
val = "";
ast_uri_decode(var);