Forum Moderators: open
Does anyone know if there's a way in ASP of automatically replacing quote characters with " like 'magic quotes' does in PHP?
If not, is there an alternative to doing a replace operation on each and every text input for a whole website to protect it against quotes messing up SQL queries?
Any suggestions appreciated. Thanks
In the end, I got round the problem of having to do a replace on every post/get variable by writing a function to automatically loop through all the passed variables, replace any dubious characters, then store the results in a VBScript dictionary so I could reference them just like I would if they were still part of the request.form or request.querystring collections.
Cheers!