Re: Re: SQL Injection - Solution
| From: | Shawn McKenzie | Date: | Wed, 06 May 2009 18:25:02 +0000 |
| Subject: | Re: Re: SQL Injection - Solution | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292357@lists.php.net to get a copy of this message | ||
Igor Escobar wrote:
> Yeah yeah, i understood that, but, the point is... i sad previously, my
> function is not tied to any database.
>
> Is a generic function, i dont know who be use this, so i don't know, what is
> your data base so, i can't use functions like mysql_real_scape_string etc...
Then the best you can do is replace mysql_real_scape_string() with
addslashes() or possibly addcslashes() and build your own list.
--
Thanks!
-Shawn
http://www.spidean.com