Merge r3371 to trunk
This commit is contained in:
parent
4648ae0f3b
commit
f85f21db32
|
@ -179,7 +179,7 @@ Zotero.File = new function(){
|
||||||
function getValidFileName(fileName) {
|
function getValidFileName(fileName) {
|
||||||
// TODO: use space instead, and figure out what's doing extra
|
// TODO: use space instead, and figure out what's doing extra
|
||||||
// URL encode when saving attachments that trigger this
|
// URL encode when saving attachments that trigger this
|
||||||
fileName = fileName.replace(/[\/\\\?%\*:|"<>\.]/g, '');
|
fileName = fileName.replace(/[\/\\\?%\*:|"<>]/g, '');
|
||||||
// Don't allow blank filename
|
// Don't allow blank filename
|
||||||
if (!fileName) {
|
if (!fileName) {
|
||||||
fileName = '_';
|
fileName = '_';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user