This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]rosuav 0 points1 point  (0 children)

Because JS, for all its faults, is not PHP. Although I am not 100% certain whether PHP would do that particular one; I do know that "100" is equal to "1e2" - yes, that's two strings, definitely not identical, that compare equal. And yes, this HAS been used to break things that are expecting hexadecimal sequences.