diff --git a/chrome/content/zotero/xpcom/attachments.js b/chrome/content/zotero/xpcom/attachments.js index af20f64a5..13713ef36 100644 --- a/chrome/content/zotero/xpcom/attachments.js +++ b/chrome/content/zotero/xpcom/attachments.js @@ -716,6 +716,9 @@ Zotero.Attachments = new function(){ // Title formatString = rpl('title', formatString); + // Strip potentially invalid characters + // See http://en.wikipedia.org/wiki/Filename#Reserved_characters_and_words + formatString = formatString.replace(/[\/\\\?\*:|"<>\.]/g, ''); return formatString; }