From 6fe1c1cbba998b95776e022730e0703b18b33b88 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 18 Apr 2013 02:52:36 -0400 Subject: [PATCH] Handle pathological case with backslashes in path --- .../zotero/xpcom/translation/translate_item.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/translation/translate_item.js b/chrome/content/zotero/xpcom/translation/translate_item.js index 6278da4eb..afab5df4d 100644 --- a/chrome/content/zotero/xpcom/translation/translate_item.js +++ b/chrome/content/zotero/xpcom/translation/translate_item.js @@ -314,11 +314,10 @@ Zotero.Translate.ItemSaver.prototype = { "_parseRelativePath":function(path) { try { var file = this._baseURI.QueryInterface(Components.interfaces.nsIFileURL).file.parent; - var splitPath = path.split(/[\/\\]/g); + var splitPath = path.split(/\//g); for(var i=0; i