3 ms·
I think escaping output is making the same mistake as sanitizing input. What we should really be saying is "stop using string interpolation/concatenation to pro
by taneq 5y ago
I think escaping output is making the same mistake as sanitizing input. What we should really be saying is "stop using string interpolation/concatenation to process generic user data".
By default, text should only ever be treated as a blob. Yes, there are circumstances where it needs to be treated otherwise but they should be seen as a giant flashing 'danger' sign indicating the need to go back to sanitizing etc.