Re: Request to bash/jump/screw my code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> * Your output isn't cleaned up when coming from the database.  You need
> to put a few stripslashes() instances in there.

Actually, if you think you have to use stripslashes, then, in fact, you've used addslashes and/or Magic Quotes TWICE, and your db has BAD DATA in it.

Fix the data intake routines to escape your data ONCE, properly, using the db escape routine (like http://php.net/mysql_real_escape_string).

ANY time you find yourself using stripslashes, you messed up way back in the production line, and need to pull the big red handle and fix the process way before where you are now.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux