www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit f2a887fd242027fbc5834076300070f82708b410
parent 6cf597a08f795aa6452e398e030594c418bb7452
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Tue, 13 May 2014 12:53:38 -0500

Recognize Windows network shares on file attachment import
Related to zotero/translators#735

Diffstat:
Mchrome/content/zotero/xpcom/translation/translate_item.js | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -329,7 +329,8 @@ Zotero.Translate.ItemSaver.prototype = { var file; // First, try to parse as absolute path - if(((/[a-zA-Z]:\\/.test(path) && Zotero.isWin) || (path[0] === "/" && !Zotero.isWin)) + if(((/^[a-zA-Z]:\\|^\\\\/.test(path) && Zotero.isWin) // Paths starting with drive letter or network shares starting with \\ + || (path[0] === "/" && !Zotero.isWin)) && (file = this._parseAbsolutePath(path))) { Zotero.debug("Translate: Got file "+path+" as absolute path"); return file;