Re: Automatic masking in PHP when using FORMS/POST
- From: "Álvaro G. Vicario" <alvaroNOSPAMTHANKS@xxxxxxxxxxxxxx>
- Date: Thu, 27 Nov 2008 10:14:13 +0100
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
--
.
- References:
- Automatic masking in PHP when using FORMS/POST
- From: Matthias Braun
- Automatic masking in PHP when using FORMS/POST
- Prev by Date: Re: MySQL -> PHP -> MS Excel?
- Next by Date: Cannot use string offset as an array
- Previous by thread: Automatic masking in PHP when using FORMS/POST
- Next by thread: newbie: debbuging multi-page website with Eclipse PDT
- Index(es):