|
Posted by Sergei Riaguzov on 07/24/07 11:23
On Tue, 24 Jul 2007 13:10:37 +0200, Michael Fesser wrote:
> Slashes are produced by magic quotes, an old and absolutely broken
> concept. Thankfully it will be removed in PHP 6. But for now you have to
> call get_magic_quotes_gpc() to check if MQs are enabled. If that's the
> case, call stripslashes() on the POST or GET values to get the raw data.
> That's what you should always work with.
OK, thank you! I will use "if (get_magic_quotes_gpc())" check before
applying stripslashes() and won't apply it in case get_magic_quotes_gpc()
returns false.
Navigation:
[Reply to this message]
|