From: Jeff Lenk Date: Sun, 8 Jan 2012 20:20:58 +0000 (-0600) Subject: FS-2216 partial X-Git-Tag: v1.2-rc1~19^2~1^2~94 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=472ab0cf6c742d60099e2c5c6ee2007c44e479ea;p=thirdparty%2Ffreeswitch.git FS-2216 partial --- diff --git a/src/mod/applications/mod_httapi/mod_httapi.c b/src/mod/applications/mod_httapi/mod_httapi.c index 0242b8081c..f453fa516e 100644 --- a/src/mod/applications/mod_httapi/mod_httapi.c +++ b/src/mod/applications/mod_httapi/mod_httapi.c @@ -2334,15 +2334,15 @@ static switch_status_t http_file_file_close(switch_file_handle_t *handle) params->flags |= EF_UNIQ_HEADERS; if (!strcasecmp(context->write.method, "put")) { - switch_event_add_header(params, SWITCH_STACK_BOTTOM, "put_file", context->write.file); + switch_event_add_header(params, SWITCH_STACK_BOTTOM, "put_file", "%s", context->write.file); } else { key = switch_core_sprintf(context->pool, "attach_file:%s:%s", context->write.name, context->write.file_name); - switch_event_add_header(params, SWITCH_STACK_BOTTOM, key, context->write.file); + switch_event_add_header(params, SWITCH_STACK_BOTTOM, key, "%s", context->write.file); } - switch_event_add_header(params, SWITCH_STACK_BOTTOM, "url", context->write.dest_url); + switch_event_add_header(params, SWITCH_STACK_BOTTOM, "url", "%s", context->write.dest_url); switch_event_add_header(params, SWITCH_STACK_BOTTOM, "file_driver", "true"); - switch_event_add_header(params, SWITCH_STACK_BOTTOM, "HTTAPI_SESSION_ID", context->write.uuid_str); + switch_event_add_header(params, SWITCH_STACK_BOTTOM, "HTTAPI_SESSION_ID", "%s", context->write.uuid_str); if ((client = client_create(NULL, context->write.profile_name, ¶ms))) { httapi_sync(client);