Skip to content

Conversation

@Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Dec 12, 2025

The regular expression used for XML prolog detection (for character encoding declarations) was malformed. This wasn't a huge problem since it was just detecting too loosely and wouldn't have missed a prolog if present, but it does mean that it was probably finding false positives sometimes. This fixes the issue.

At the end of the day, this was just some unescaped and mis-escaped question marks, so it would have matched a real prolog, but also would have matched:

hi hello: xml version="1.0" encoding="Shift_JIS" >

The regular expression used for XML prolog detection (for character encoding declarations) was malformed. This wasn't a huge problem since it was just detecting too loosely and wouldn't have missed a prolog if present, but it does mean that it was probably finding false positives sometimes. This fixes the issue.
@Mr0grog Mr0grog moved this from Inbox to In Progress in Web Monitoring Dec 12, 2025
@Mr0grog Mr0grog merged commit 1783275 into main Dec 13, 2025
7 checks passed
@Mr0grog Mr0grog deleted the xml-prologs-involve-question-marks branch December 13, 2025 00:57
@github-project-automation github-project-automation bot moved this from In Progress to Done in Web Monitoring Dec 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants