mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
updateconfig is not uri decoding variables,values from the GET url
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@132169 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1270,7 +1270,8 @@ static enum error_type handle_updates(struct mansession *s, const struct message
|
|||||||
{
|
{
|
||||||
int x;
|
int x;
|
||||||
char hdr[40];
|
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_category *category;
|
||||||
struct ast_variable *v;
|
struct ast_variable *v;
|
||||||
|
|
||||||
@@ -1285,8 +1286,10 @@ static enum error_type handle_updates(struct mansession *s, const struct message
|
|||||||
cat = astman_get_header(m, hdr);
|
cat = astman_get_header(m, hdr);
|
||||||
snprintf(hdr, sizeof(hdr), "Var-%06d", x);
|
snprintf(hdr, sizeof(hdr), "Var-%06d", x);
|
||||||
var = astman_get_header(m, hdr);
|
var = astman_get_header(m, hdr);
|
||||||
|
ast_uri_decode(var);
|
||||||
snprintf(hdr, sizeof(hdr), "Value-%06d", x);
|
snprintf(hdr, sizeof(hdr), "Value-%06d", x);
|
||||||
value = astman_get_header(m, hdr);
|
value = astman_get_header(m, hdr);
|
||||||
|
ast_uri_decode(value);
|
||||||
if (!ast_strlen_zero(value) && *value == '>') {
|
if (!ast_strlen_zero(value) && *value == '>') {
|
||||||
object = 1;
|
object = 1;
|
||||||
value++;
|
value++;
|
||||||
|
|||||||
Reference in New Issue
Block a user