Strip potentially invalid characters in auto-generated attachment filenames
This commit is contained in:
parent
d803831856
commit
13d5d59b01
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user