Fix or strings in IE

This commit is contained in:
Simon Kornblith 2012-07-18 15:03:52 -04:00
parent 54fd18cce3
commit afef6bc5a7

View file

@ -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);