QF/DataObject mangling input chars

From: Date: Thu, 19 May 2005 05:44:10 +0000
Subject: QF/DataObject mangling input chars
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19277@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm really confused by a strange bit of behaviour from QF when used with DataObject. I'm trying to save a text field that has formatting in it: mostly carriage returns and tabs and quotations and some html special chars. As far as I can tell, the \n\r's are passed as actual NL/CR characters in the $vars argument to the QuickForm::process() method. But, then when I actually assign the vars to the DataObject, somehow the NL/CR get turned into actual literal '\', 'n', '\', 'r' characters: 4 chars instead of 2. I have no idea why DataObject is doing that, but it's making me crazy. The stuff then gets saved to the database that way: utterly useless. Somewhere, probably inside DataObject, some magic is happening, and it's Bad magic. What's going on here? - -ken - -- - --------------- The world's most affordable web hosting. http://www.nearlyfreespeech.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCjCeqe8HF+6xeOIcRAjhkAJ9EN0p65dz+PnBNt9LJ0wHi9DndBgCeONiE dF556tpvE8nu1iSpFrfY4Hc= =uZEY -----END PGP SIGNATURE-----

« previous php.pear.general (#19277) next »