Paul Evans Posted February 16, 2011 Posted February 16, 2011 and if people were smart AIDS wouldn't be here but it happened didn't it... Quote
rulerofzu Posted February 16, 2011 Posted February 16, 2011 Going off topic much? sprintf is useful in that it formats which is handy for those what wish to program that way. By itself it does not secure anything but as your going down a formatting route with sprintf then your putting yourself in a position of A = 1234 and B = LALALALA as the result says so. Therefore secure A this way and secure B that way. Ok a little long winded but effective. Id much rather see people use sprintf and then secure than use mres on numbers like I have seen! Or put some function in the header I still prefer to use sprintf on my sql queries and for those that like to state it slows down your code. Get a better server ;) Quote
a_bertrand Posted February 16, 2011 Posted February 16, 2011 sprintf doesn't really impact much on the speed, however as you stated it doesn't secure anything by it's own. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.