mask # as _ while saving/exporting to vfs

This commit is contained in:
Klaus Leithoff 2012-03-12 14:57:01 +00:00
parent db7e935aef
commit 77fa6800b2

View File

@ -249,7 +249,7 @@ function mail_save2fm(_action, _elems)
url += 'menuaction=filemanager.filemanager_select.select'; // todo compose for Draft folder url += 'menuaction=filemanager.filemanager_select.select'; // todo compose for Draft folder
//url += '&icServer='+egw_appWindow('felamimail').activeServerID; //url += '&icServer='+egw_appWindow('felamimail').activeServerID;
url += '&mode=saveas'; url += '&mode=saveas';
var filename = _elems[0].data.data.subject.data.replace(/[\f\n\t\v/\\:*?<>\|]/g,"_"); var filename = _elems[0].data.data.subject.data.replace(/[\f\n\t\v/\\:*#?<>\|]/g,"_");
url += '&name='+encodeURIComponent(filename+'.eml'); url += '&name='+encodeURIComponent(filename+'.eml');
url += '&mime=message'+encodeURIComponent('/')+'rfc822'; url += '&mime=message'+encodeURIComponent('/')+'rfc822';
url += '&method=felamimail.uidisplay.vfsSaveMessage' url += '&method=felamimail.uidisplay.vfsSaveMessage'