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

Title Field Converts Parentheses to Angle Brackets After MySQL Reserved Word #2642

Open
projectnoontide opened this issue Dec 14, 2022 · 2 comments

Comments

@projectnoontide
Copy link
Contributor

Parentheses convert to right/left angle brackets in the Title field when using a recently added reserved word from MySQL (8.0.3).

Steps to reproduce the behavior:

  1. Add the following Title text: Reserved Word (System) at End Followed by Parentheses, e.g. System (Hi)
  2. Output title text to html.

This behavior only occurs when the reserved word (System) is at the end, followed by parentheses.

Env:

  • EE Version: 7.1.6
  • PHP Version: 8.1.6
  • MySQL Version: 8.0.31
  • OS: macOS Catalina, 10.15.7
  • Web Server: nginx

MySQL Note: SYSTEM (R); added in 8.0.3 (reserved)
https://dev.mysql.com/doc/mysqld-version-reference/en/keywords-8-0.html

@intoeetive
Copy link
Contributor

In certain cases parentheses are being converted into angle brackets as part of XSS cleanup.

We realize this is not ideal solution though, so will keep this issue open

@projectnoontide
Copy link
Contributor Author

I'll work around it for now, thanks.

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

No branches or pull requests

2 participants