commit 04fa4a09434044f42c28ce92cbab03b569a8418a
parent 5d54dd9fbfcb99ec478586942dbe57e54313b89d
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 18 Feb 2014 18:42:06 -0500
Fix Zotero crash pasting in creator with certain leading whitespace
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
@@ -1688,7 +1688,7 @@
var otherFields = this.getCreatorFields(row);
otherFields[creatorField] = value;
- var lastName = otherFields.lastName;
+ var lastName = otherFields.lastName.trim();
//Handle \n\r and \n delimited entries
var rawNameArray = lastName.split(/\r\n?|\n/);