cromestant Posted February 27, 2009 Share Posted February 27, 2009 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. Link to comment https://forums.phpfreaks.com/topic/147185-wierd-escape-characters-problems-not-trivial/ Share on other sites More sharing options...
Mchl Posted February 27, 2009 Share Posted February 27, 2009 Check if you have magic_quotes enabled. Disable them if possible. Link to comment https://forums.phpfreaks.com/topic/147185-wierd-escape-characters-problems-not-trivial/#findComment-772669 Share on other sites More sharing options...
cromestant Posted February 27, 2009 Author Share Posted February 27, 2009 That was it, thanks Link to comment https://forums.phpfreaks.com/topic/147185-wierd-escape-characters-problems-not-trivial/#findComment-772815 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.