Post #2991964
2024-07-27 23:03 UTC
@wilbr@glitch.social @DanadasGrau@mastodon.social @shac@ioc.exchange @skaverat@skaverat.net coercive zero-null (in)equality comes up with remarkable frequency, unfortunately, particularly in JS and PHP.
Replies (1)
-
@wilbr@glitch.social 2024-07-27 23:45
@gsuberland@chaos.social @DanadasGrau@mastodon.social @shac@ioc.exchange @skaverat@skaverat.net sure but even then if someone does `if($birthday)`without parsing it from unix int to a date object first, the worst that likely happens is it acts as if you didn't provide a birthday... Which they're obviously allowing. But this is also on the backend after already accepting the Y/M/D from the user knowing that *that's* not null... Idk seems like a hard edge case to hit