[asterisk-commits] qwell: trunk r70493 - /trunk/main/http.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jun 20 15:41:06 CDT 2007


Author: qwell
Date: Wed Jun 20 15:41:06 2007
New Revision: 70493

URL: http://svn.digium.com/view/asterisk?view=rev&rev=70493
Log:
Revert the change made in revision 45474, since this causes other issues.

Issue 10021.

Modified:
    trunk/main/http.c

Modified: trunk/main/http.c
URL: http://svn.digium.com/view/asterisk/trunk/main/http.c?view=diff&rev=70493&r1=70492&r2=70493
==============================================================================
--- trunk/main/http.c (original)
+++ trunk/main/http.c Wed Jun 20 15:41:06 2007
@@ -143,18 +143,6 @@
 	}
 	snprintf(wkspace, wkspacelen, "text/%s", ftype ? ftype : "plain");
 	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)
@@ -583,7 +571,7 @@
 		while ((val = strsep(&params, "&"))) {
 			var = strsep(&val, "=");
 			if (val)
-				uri_decode(val);
+				ast_uri_decode(val);
 			else 
 				val = "";
 			ast_uri_decode(var);




More information about the asterisk-commits mailing list