3 ms·
> Pretty much every language has a way to do string interpolation on untrusted input and pass it to to a database Otherwise they would not be Turing complete..
by kaba0 5y ago
> Pretty much every language has a way to do string interpolation on untrusted input and pass it to to a database
Otherwise they would not be Turing complete.. but defaults/easiest route does matter very much in this case.
- SilverRed 5y agoAnd the default docs and tutorials. If you look at Ruby on Rails. The way every tutorial will show makes it impossible to get an sql injection. Then as you gain more skill you will eventually find the function that lets you run a string query but no guide or tutorial shows you this so it is less likely you will use it without understanding.
- codedokode 5y agoRuby and Rails tutorial is not a Ruby tutorial. The ancestor comment talked about language tutorials, not framework tutorials.
- kaba0 5y agoJDBC does have an option to pass parameters without doing string interpolation and I would not consider it a framework.
- tyingq 5y agoI don't mean going through hoops. String interpolation is easy in most languages. See https://news.ycombinator.com/item?id=27958651 https://news.ycombinator.com/item?id=27958651 for example.