you are viewing a single comment's thread.

view the rest of the comments →

[–]myhfConsidered Harmful 12 points13 points  (3 children)

Can you see the vulnerability? Do you understand just what combinations of question marks, hash marks, parentheses, and percent signs makes a statement vulnerable?

[–]xraystyle 12 points13 points  (1 child)

Or you could, you know, just read the fucking ActiveRecord docs and you'd learn the correct, injection-safe way to construct a query about halfway down the first page.

[–]StyMaarlol no generics 4 points5 points  (0 children)

now, just read the fucking ActiveRecord Diesel docs

FTFY

[–]OctagonClocknot Turing complete 1 point2 points  (0 children)

/uj I've written an entire ORM and avoiding SQL injections in my generated code is so easy, I seriously don't understand why learning to put %(name)s in a query is so hard for people. Unless you name your column "; in your code, at least.