RE: [PHP] Unserialize bug?

From: Date: Thu, 22 May 2003 10:38:33 +0000
Subject: RE: [PHP] Unserialize bug?
Groups: php.general 
Request: Send a blank email to php-general+get-148529@lists.php.net to get a copy of this message
> -----Original Message----- > From: Leon Mergen [mailto:lmergen@yahoo.com] > Sent: 22 May 2003 11:38 > > "Mike Ford" <M.Ford@lmu.ac.uk> wrote in message > > news:841D90E489448A4F804E1D1B95768BF7D4609E@lis-exchange3.lmu.ac.uk... > > So, once again: what do you *do* with the serialized array???? > > Storing it in a cookie. Will that be the reason why the > quotes get escaped? Yes, absolutely -- you must have magic_quotes_gpc set, and guess what the c in gpc stands for...? If you can't (or don't want to) turn that setting off, then manually stripslashing the retrieved value is the only way to go. Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: m.ford@lmu.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#148529) next »