The message has to be that some programmers will obviously make some compromises sometimes for practicallities sake, even the most conservative programmers will make some security conscessions on occasion, it is just a matter of closing the most obvious loopholes and doing the best job that practicallity allows.
Personally I do not trust form data, my scripts convert variables to their expected type, tags are stripped and data is made safe for queries using either prepared statements or mysqlirealescape string.
If you do those things then you should be safe in most cases unless someone was really determined.