41
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 16 Feb 2026
41 points (97.7% liked)
Programmer Humor
29845 readers
440 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
...so the respective library functions each sanitizes the input meets their requirement, pre- and appending slashes as needed?
...right?
For fuck's sake
I'm guessing they have two instances of string validation, the developer for each of which helpfully decided "I'll make sure there's a slash, idk if the other end checks it" and then a third function that trims the slashes from the parts and concatenates them with a slash for a separator.
But, man, is this ever stupid.