url decode these variables just incase
This commit is contained in:
parent
d481bf5eff
commit
8773fab490
|
@ -997,13 +997,25 @@ static pvt_t *pvt_init(switch_core_session_t *session, mod_spandsp_fax_applicati
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tmp = switch_channel_get_variable(channel, "fax_ident"))) {
|
if ((tmp = switch_channel_get_variable(channel, "fax_ident"))) {
|
||||||
pvt->ident = switch_core_session_strdup(session, tmp);
|
char *data = NULL;
|
||||||
|
|
||||||
|
data = strdup(tmp);
|
||||||
|
switch_url_decode(data);
|
||||||
|
pvt->ident = switch_core_session_strdup(session, data);
|
||||||
|
|
||||||
|
switch_safe_free(data);
|
||||||
} else {
|
} else {
|
||||||
pvt->ident = switch_core_session_strdup(session, globals.ident);
|
pvt->ident = switch_core_session_strdup(session, globals.ident);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((tmp = switch_channel_get_variable(channel, "fax_header"))) {
|
if ((tmp = switch_channel_get_variable(channel, "fax_header"))) {
|
||||||
pvt->header = switch_core_session_strdup(session, tmp);
|
char *data = NULL;
|
||||||
|
|
||||||
|
data = strdup(tmp);
|
||||||
|
switch_url_decode(data);
|
||||||
|
pvt->header = switch_core_session_strdup(session, data);
|
||||||
|
|
||||||
|
switch_safe_free(data);
|
||||||
} else {
|
} else {
|
||||||
pvt->header = switch_core_session_strdup(session, globals.header);
|
pvt->header = switch_core_session_strdup(session, globals.header);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue