Hack Forums
Ampersand Bug - User Title - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hack Forums Official Information (https://hackforums.net/forumdisplay.php?fid=1)
+--- Forum: Site News (https://hackforums.net/forumdisplay.php?fid=2)
+---- Forum: Suggestions and Ideas (https://hackforums.net/forumdisplay.php?fid=134)
+---- Thread: Ampersand Bug - User Title (/showthread.php?tid=6210537)



Ampersand Bug - User Title - Rionxee - Jun 22, 2022

When setting a user title and using the ampersand "&" it does not register correctly.

i.e.

[Image: YtXu90F.png]


RE: Ampersand Bug - User Title - Cooligan - Jun 23, 2022

Can vouch this does happen.

For the longest time I had "&;alt3" or something like that instead of the "<3" that's there now.

Xero hooked me up one day a while back though and manually put a "<3" in my motto when he was still admin, that's the only reason it works in mine.


RE: Ampersand Bug - User Title - xHeaven - Jun 23, 2022

It's because user titles are encoded via htmlspecialchars() on the backend.
It's because certain characters are being replaced by this function on the backend.


RE: Ampersand Bug - User Title - source - Jun 23, 2022

This is a security feature I believe.


RE: Ampersand Bug - User Title - Omniscient - Jun 25, 2022

For security. Use different characters.