Polish HtmlCharacterEntityDecoder
See gh-27833
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -85,6 +78,10 @@ class HtmlCharacterEntityDecoder {
|
||||
break;
|
||||
}
|
||||
|
||||
if (this.nextSemicolonPosition - this.nextPotentialReferencePosition < MAX_REFERENCE_SIZE) {
|
||||
break;
|
||||
}
|
||||
|
||||
this.nextPotentialReferencePosition = this.nextPotentialReferencePosition + 1;
|
||||
}
|
||||
while (this.nextPotentialReferencePosition != -1);
|
||||
|
||||
Reference in New Issue
Block a user