Jump to content

Wierd Escape characters problems ( not trivial)


cromestant

Recommended Posts

Hello, stupid problem, first time it happens

first of all i have a test input in a form, if I type p'a i ll get wierd escape characters.

<input type="text" name="test"/>

now in my php code

$text = $_POST['test'];
error_log($text,3,'pathtologfile');

now if i put " pa <' kj"

in my text field i ll get this in the log file:

pa <\' kj

 

i tried with post and with $this->_request->getParam('test') from Zend Frameworks..

 

This is before processing it to DB so no corruption due to mysql, first time this has ever happened to me.. any ideas on what could be happening, i don t think its htmlentities problem since the '>' would also be converted to >

 

any help would be appreciated.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.