From 52c3cf11087df0296f7c590eb21b4e506f885018 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Fri, 8 Jun 2007 15:34:39 +0000 Subject: [PATCH] merge changes from MODLANG-30 and MODLANG-31. changed to use switch_cut_path instead of basename for portablility. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5292 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c b/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c index 7b47c9d285..a250099fa3 100644 --- a/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c +++ b/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c @@ -128,7 +128,7 @@ static JSBool js_email(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, if (file) { snprintf(buf, B64BUFFLEN, "\n\n--%s\nContent-Type: application/octet-stream\n" "Content-Transfer-Encoding: base64\n" - "Content-Description: Sound attachment.\n" "Content-Disposition: attachment; filename=\"%s\"\n\n", bound, file); + "Content-Description: Sound attachment.\n" "Content-Disposition: attachment; filename=\"%s\"\n\n", bound, (argc > 5) ? JS_GetStringBytes(JS_ValueToString(cx,argv[5])) : switch_cut_path(file)); if (!write_buf(fd, buf)) return JS_FALSE;