×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules Donate
2

The "<" symbol is bugged in chat

submitted by oyveyo to UpgoatDev 4 monthsDec 10, 2024 15:03:03 ago (+2/-0)     (UpgoatDev)

When you use the "<" symbol, the chat disregards that and the rest of the post

I'd really like one of those bugfinder badges!

edit: upon further testing, it seems to only take effect if the "<" is immediately followed by an alphanumeric character. Examples:

one<two yields "one"
one< two yields "one< two"
one<-two yields "one<-two"
1<2 yields "1"
<anything doesn't even post
< anything yields "< anything"

In some cases, it drops everything including the text before the "<"
test <a target="_blank" href="some.thing/here.html"></a>
yields a blank post

edit 2: edit: I've dissected what I could on my end, and my hypothesis is there is a regexp filter on the server side that blindly censors anything that starts with "<" and is immediately followed by an alphanumeric character. It's an effective way to prevent users from injecting html tags into the chat (cool things like animated gifs and nefarious things too), but the collateral damage is dropped non-tag data. I'm still calling it a bug.


7 comments block

Test:
I hope you get a bugfinding badge, but your chances are < (rest of post disregarded)