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

Fix detecting doctype for whitelisting. #508

Closed
wants to merge 1 commit into from

Conversation

TiS
Copy link

@TiS TiS commented Oct 14, 2015

This "fix" restores the original behavior of doctype whitelisting (also - makes the unit tests pass).

The doctype whitelisting works on the whole "<!DOCTYPE" declaration. But in recent PHP versions the internalSubtype returns (correctly) only, well, the INTERNAL subtype declaration for a doctype.

Existing code tried to compensate this and worked for doctypes without internal entity declarations.

This PR restores the original behavior also for doctypes with internal entity declarations.

This is connected to #427 (although the original issue was closed).

@TiS
Copy link
Author

TiS commented Oct 20, 2015

Any comments?

@TiS TiS mentioned this pull request Oct 20, 2015
@TiS
Copy link
Author

TiS commented Oct 27, 2015

ping @schmittjoh. Connected with #511 - choose the solution for test fix :)

@goetas
Copy link
Collaborator

goetas commented May 9, 2016

this is probably outdated now

@TiS
Copy link
Author

TiS commented May 9, 2016

I'll check. What has been pulled, then?

@goetas
Copy link
Collaborator

goetas commented May 9, 2016

#578

@goetas
Copy link
Collaborator

goetas commented Aug 3, 2016

Part of fixes included in #578

@goetas goetas closed this Aug 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants