Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poi: #60626 - ArrayIndexOutOfBoundsException in EvilUnclosedBRFixingInputStream #1451

Merged
merged 2 commits into from
Dec 15, 2024

Conversation

antony-liu
Copy link
Collaborator

poi: #60626 - ArrayIndexOutOfBoundsException in EvilUnclosedBRFixingInputStream

@@ -116,7 +117,7 @@ internal void Read(Stream is1)
//Stream vmlsm = new EvilUnclosedBRFixingInputStream(is1); --TODO:: add later

doc.LoadXml(
data.Replace("<br>","").Replace("</br>", "")
data.Replace("<br>", "<br/>").Replace("</br>", "<br/>")
Copy link
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
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
Member

tonyqus commented Dec 15, 2024

LGTM

@tonyqus tonyqus added this to the NPOI 2.7.3 milestone Dec 15, 2024
@tonyqus tonyqus merged commit db5ec30 into nissl-lab:master Dec 15, 2024
3 checks passed
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