Skip to content

poi: #60626 - ArrayIndexOutOfBoundsException in EvilUnclosedBRFixingInputStream#1451

Merged
tonyqus merged 2 commits into
nissl-lab:masterfrom
antony-liu:poi/bug-60626
Dec 15, 2024
Merged

poi: #60626 - ArrayIndexOutOfBoundsException in EvilUnclosedBRFixingInputStream#1451
tonyqus merged 2 commits into
nissl-lab:masterfrom
antony-liu:poi/bug-60626

Conversation

@antony-liu
Copy link
Copy Markdown
Collaborator

poi: #60626 - ArrayIndexOutOfBoundsException in EvilUnclosedBRFixingInputStream


doc.LoadXml(
data.Replace("<br>","").Replace("</br>", "")
data.Replace("<br>", "<br/>").Replace("</br>", "<br/>")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't change this code. I remember this is used to fix something.

Copy link
Copy Markdown
Collaborator Author

@antony-liu antony-liu Dec 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were issues with the previous fix. This fix has added the test case TestEvilUnclosedBRFixing, the previous fix make it failed. I think it was used to fix the Unclosed BR tag issue.

The Unclosed BR tag should not be deleted, but rather it should be corrected.

@tonyqus
Copy link
Copy Markdown
Member

tonyqus commented Dec 15, 2024

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants