2 ms·
> I seem to recall a recent discussion pointing out an issue with leading zeros in IP addresses being interpreted as Octal, leading to possible invalid addresse
by josteink 8y ago
> I seem to recall a recent discussion pointing out an issue with leading zeros in IP addresses being interpreted as Octal, leading to possible invalid addresses like 09.09.09.09 (9 isn't valid Octal).
That looks like a framework-specific issue and if that’s how you process incoming numbers from the Internet, you are clearly doing something wrong.
Anyone on the Internet will reasonably expect that a decimal number provided to a Internet input-field will be interpreted as a decimal number.
Anything else, unless explicitly stated, is by definition an error on the part of the application developer.
- KineticLensman 8y agoThe person concerned was inserting leading zeros so that the numbers lined up nicely, IIRC