|
|
|
|
@ -70,13 +70,6 @@ class HtmlCharacterEntityDecoder {
@@ -70,13 +70,6 @@ class HtmlCharacterEntityDecoder {
|
|
|
|
|
this.nextSemicolonPosition = this.originalMessage.indexOf(';', this.nextPotentialReferencePosition + 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
boolean isPotentialReference = (this.nextPotentialReferencePosition != -1 && |
|
|
|
|
this.nextSemicolonPosition != -1 && |
|
|
|
|
this.nextSemicolonPosition - this.nextPotentialReferencePosition < MAX_REFERENCE_SIZE); |
|
|
|
|
|
|
|
|
|
if (isPotentialReference) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
if (this.nextPotentialReferencePosition == -1) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
@ -84,6 +77,9 @@ class HtmlCharacterEntityDecoder {
@@ -84,6 +77,9 @@ class HtmlCharacterEntityDecoder {
|
|
|
|
|
this.nextPotentialReferencePosition = -1; |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
if (this.nextSemicolonPosition - this.nextPotentialReferencePosition < MAX_REFERENCE_SIZE) { |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.nextPotentialReferencePosition = this.nextPotentialReferencePosition + 1; |
|
|
|
|
} |
|
|
|
|
|