[Freeswitch-svn] [commit] r5292 - freeswitch/trunk/src/mod/languages/mod_spidermonkey_etpan

Freeswitch SVN mikej at freeswitch.org
Fri Jun 8 11:34:39 EDT 2007


Author: mikej
Date: Fri Jun  8 11:34:39 2007
New Revision: 5292

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c

Log:
merge changes from MODLANG-30 and MODLANG-31.  changed to use switch_cut_path instead of basename for portablility.

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey_etpan/mod_spidermonkey_etpan.c	Fri Jun  8 11:34:39 2007
@@ -128,7 +128,7 @@
 			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;
 



More information about the Freeswitch-svn mailing list