[asterisk-commits] pari: trunk r132169 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 18 15:14:05 CDT 2008


Author: pari
Date: Fri Jul 18 15:14:05 2008
New Revision: 132169

URL: http://svn.digium.com/view/asterisk?view=rev&rev=132169
Log:

 updateconfig is not uri decoding variables,values from the GET url



Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svn.digium.com/view/asterisk/trunk/main/manager.c?view=diff&rev=132169&r1=132168&r2=132169
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Fri Jul 18 15:14:05 2008
@@ -1270,7 +1270,8 @@
 {
 	int x;
 	char hdr[40];
-	const char *action, *cat, *var, *value, *match, *line;
+	const char *action, *cat, *match, *line;
+	char *var, *value;
 	struct ast_category *category;
 	struct ast_variable *v;
 
@@ -1285,8 +1286,10 @@
 		cat = astman_get_header(m, hdr);
 		snprintf(hdr, sizeof(hdr), "Var-%06d", x);
 		var = astman_get_header(m, hdr);
+		ast_uri_decode(var);
 		snprintf(hdr, sizeof(hdr), "Value-%06d", x);
 		value = astman_get_header(m, hdr);
+		ast_uri_decode(value);
 		if (!ast_strlen_zero(value) && *value == '>') {
 			object = 1;
 			value++;




More information about the asterisk-commits mailing list