掲示板 Forums - A blank forum Topic (Resolved)
Top > renshuu.org > Bugs / Problems Getting the posts
Top > renshuu.org > Bugs / Problems
Apparently you can leave the title of a Topic blank and break a few things :D Not sure if there's a zero-width character, they deleted it afterwards, or the validation failed somehow?
(you can't expand it at all, because the link (title) is missing)
("Last Post:" is also blank, so you can't access the topic from there either. "View latest post" works.)
The topic in question: https://app.renshuu.org/forums...
The user is new, so it's likely they just didn't post the title. It's accessible in other ways, yes, but no title to click. It would seem more like a flaw in design more than an actual bug.
A bot would still need to run a client (not necessarily a full visible browser). I think you'd need to go out of your way to break validation, and I just don't see why anyone making bots would wanna do that. Anyway, this is almost certainly not a bot.
I did figure out how to replicated it. Apparently validation is extremely rudimentary so you can just enter a Space and it allows it... a little embarrassing honestly, no offence to Michael :)
It seems to strip it afterwards, but not when doing the validation. I'll test it a bit more.
Edit: Looks like you can also leave the body empty. Doesn't matter as much though.
You just need to strip whitespace when doing the validation. It's a super easy fix. Should take less than a minute. You just add a trim() and that's it.
Edit: There's also no link when you get a 好 point :D
The downstream effect is real with these "small" bugs. And yes, I would consider this a bug. At least as a programmer. Although I guess it doesn't really matter what you call it. I can live with "a design flaw that causes bugs".
No validation is done on the client side - all client side checks are to help limit hits to the server (where the real validation takes place) when the client can more easily say "hey, please fix this."
That being said, the validation on the forum title specifically did not take advantage of some of the helper code I wrote later (the forums are VERY old), so it missing the trimming of empty space. Should be fixed now.