From 54fd18cce3e50281bcec039635d039670a12f9d4 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 18 Jul 2012 14:56:37 -0400 Subject: [PATCH 1/2] Fix for strings in IE --- chrome/content/zotero/xpcom/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js index f0d193e45d..fc95506c1e 100644 --- a/chrome/content/zotero/xpcom/utilities.js +++ b/chrome/content/zotero/xpcom/utilities.js @@ -693,7 +693,7 @@ Zotero.Utilities = { } else { // this is not a skip word or comes after a colon; // we must capitalize - words[i] = upperCaseVariant[0] + lowerCaseVariant.substr(1); + words[i] = upperCaseVariant.substr(0, 1) + lowerCaseVariant.substr(1); } } From afef6bc5a7a4bc04079eab974c6e9eb7292dd714 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Wed, 18 Jul 2012 15:03:52 -0400 Subject: [PATCH 2/2] Fix or strings in IE --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index bb29810368..0e6b8060b9 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2204,7 +2204,7 @@ Zotero.Translate.IO.String.prototype = { if(lfIndex !== -1) { // in case we have a CRLF this.bytesRead = lfIndex+1; - if(this.contentLength > lfIndex && this.string[lfIndex-1] === "\r") { + if(this.contentLength > lfIndex && this.string.substr(lfIndex-1, 1) === "\r") { lfIndex--; } return this.string.substr(oldPointer, lfIndex-oldPointer);