Re: [pLog-General] Send To Friend plugin
Brought to you by:
jondaley
From: Brian M R. <bm...@ch...> - 2003-11-21 16:37:50
|
Well then I can tell you how I broke it.... I attempted to change the font type it was sent in. ;) The editor inserted the stuff with extra " but didn't escape them (\" instead of ") Maybe we need to look at using the addslashes() and stripslashes() functions? Oscar Renalias wrote: >As I feared when I saw this, it turns out that PHP is not capable of >unserializing an array that has at least one string with double quotes " >characters in it... If you look at the content of your blog_settings field, >strings are normally serialized as > >s:17:"show_more_enabled" > >where 's' stands for 'string' and 17 is the length. Funny how is the string >looks like > >s:18:"show_more_"enabled" > >It won't work... In your case, apparently you defined the body of the email to >be sent to persons as html code with " characters and that caused it to >break. > >I still have to look how to fix it. I thought that serializing the settings >object into the db would be easier in order to store a variable number of >configuration settings but I wasn't expecting that it would break because of >this... :( > >I'm working on a fix. I'll keep you updated! > >Oscar. > > |