Re: Automatic masking in PHP when using FORMS/POST



Matthias Braun escribió:
ProjectName like 'Test%'

I am receiving

ProjectName like \'Test%\'

What goes wrong? Do I have to change the transfer mode? I tried to work with htmlspecialchars_decode() or entity_decode(), but this does not help.

If you thing carefully, you'll notice that the back-slash character doesn't have any special meaning in HTML.

You're suffering from a good old "feature" called "Magic quotes" that's disabled by default in modern PHP releases. Here's all the info you need:

http://us3.php.net/manual/en/security.magicquotes.php


--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://bits.demogracia.com
-- Mi web de humor al baño María: http://www.demogracia.com
--
.