by josefx · 4y ago · 0 comments
Of course it does. Is there a single web API that doesn't intentionally enable exploit smuggling by allowing malformed input?
Make it so that if the caller/client works at all then it must work correctly. Force them to handle errors and retry on things that might fail, values that might change, and if the result is something that must be parsed send it back in varying formats so they have to parse it.
IMO the "robustness principle" is a good thing because it realizes that people make mistakes and their goal isn't to make something correct but something that produces the results they want to see. Even if browsers started with XHTML-like strictness with no alternative, that strictness would quickly have eroded during the first browser wars.
Delete a byte from a zip file, and it won’t unzip.
I don’t see why HTML should be different…
Maybe the solution was to not publish sites that are a bracket off.
I think half the problems with JavaScript are because of its weak typing. 1 + {} should be a type error.
> Do anything, even the wrong thing, just work.
It's even worse than PHP and JS were built around it.
Errors should never pass silently unless explicitly silenced.