Skip to content

html encode user name#16

Open
white-gthb wants to merge 1 commit into
GerB:masterfrom
white-gthb:patch-1
Open

html encode user name#16
white-gthb wants to merge 1 commit into
GerB:masterfrom
white-gthb:patch-1

Conversation

@white-gthb

Copy link
Copy Markdown

A moderator put quotes around his name in the bbc code [mod="name"] resulting in faulty HTML and causing the mask values not to be replaced and even caused 500 Internal Server Error. The entire thread on the forum could no longer be accessed.

The text behind mod= should not be blindly inserted into <MOD mod="...".

Beside my fix to use htmlentities(), it is perhaps also wise to limit the user name to a certain max length before calling htmlentities().

@white-gthb

Copy link
Copy Markdown
Author

Theoretically it might also be possible to set up phpBB to allow for quote characters to be used in user names.

@white-gthb

Copy link
Copy Markdown
Author

Add mention: @LukeWCS

@white-gthb

white-gthb commented Apr 28, 2026

Copy link
Copy Markdown
Author

Seems my PR is still open but removed from the index by GitHub.
Edit: This comment fixed it.

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.

1 participant