[pLog-svn] r5184 - plog/branches/lifetype-1.2/class/view/admin

Mark Wu markplace at gmail.com
Mon Mar 26 02:18:41 EDT 2007


This fix is not for "&" only, it is for all html entity

For example,  "<" it will change to " lt;" before send to we client,
it seems tinymce will ecnode them first .....

But, need more check. Even I applied this change, there still some weird
behaviors happened. :(

Mark

> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net 
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Jon Daley
> Sent: Monday, March 26, 2007 11:04 AM
> To: plog-svn at devel.lifetype.net
> Subject: Re: [pLog-svn] r5184 - 
> plog/branches/lifetype-1.2/class/view/admin
> 
>  	Do you know why & are special?  This seems like a 
> strange fix.
> 
> On Mon, 26 Mar 2007, Mark Wu wrote:
> 
> > Yep, I tested all of them, it works. :)
> >
> > Mark
> >
> >> -----Original Message-----
> >> From: plog-svn-bounces at devel.lifetype.net
> >> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of Oscar 
> >> Renalias
> >> Sent: Monday, March 26, 2007 12:43 AM
> >> To: plog-svn at devel.lifetype.net
> >> Subject: Re: [pLog-svn] r5184 -
> >> plog/branches/lifetype-1.2/class/view/admin
> >>
> >> I also noticed this bug but this might not be enough. Did 
> you check 
> >> what's happening with other characters such as ">", "<", "&lt;", 
> >> "&gt;" and so on?
> >>
> >> On 25 Mar 2007, at 19:42, mark at devel.lifetype.net wrote:
> >>
> >>> Author: mark
> >>> Date: 2007-03-25 12:42:49 -0400 (Sun, 25 Mar 2007) New
> >> Revision: 5184
> >>>
> >>> Modified:
> >>>    plog/branches/lifetype-1.2/class/view/admin/
> >>> admineditpostview.class.php
> >>> Log:
> >>> Fixed a bug list here: http://bugs.lifetype.net/view.php?id=1235
> >>>
> >>> Modified: plog/branches/lifetype-1.2/class/view/admin/
> >>> admineditpostview.class.php
> >>> 
> ===================================================================
> >>> --- plog/branches/lifetype-1.2/class/view/admin/
> >>> admineditpostview.class.php	2007-03-25 16:31:45 UTC 
> (rev 5183)
> >>> +++ plog/branches/lifetype-1.2/class/view/admin/
> >>> admineditpostview.class.php	2007-03-25 16:42:49 UTC 
> (rev 5184)
> >>> @@ -50,7 +50,7 @@
> >>>
> >>>  	            // set information about the post itself
> >> into the view
> >>>  	            $this->setValue( "postTopic", $this->_article-
> >>>> getTopic());
> >>> -                $this->setValue( "postText", $this->_article-
> >>>> getText( false ));
> >>> +                $this->setValue( "postText", str_replace('&',
> >>> '&amp;', $this->_article->getText( false )));
> >>>  	            $this->setValue( "postSlug", $this->_article-
> >>>> getPostSlug());
> >>>  	            $this->setValue( "postId",
> >> $this->_article->getId());
> >>>  	            if( $this->_article->getCommentsEnabled())
> >>>
> >>> _______________________________________________
> >>> pLog-svn mailing list
> >>> pLog-svn at devel.lifetype.net
> >>> http://limedaley.com/mailman/listinfo/plog-svn
> >>>
> >>
> >> _______________________________________________
> >> pLog-svn mailing list
> >> pLog-svn at devel.lifetype.net
> >> http://limedaley.com/mailman/listinfo/plog-svn
> >>
> >
> > _______________________________________________
> > pLog-svn mailing list
> > pLog-svn at devel.lifetype.net
> > http://limedaley.com/mailman/listinfo/plog-svn
> >
> 
> --
> Jon Daley
> http://jon.limedaley.com/
> 
> Nothing is as easy as it looks.
> -- Murphy's First Law
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
> 



More information about the pLog-svn mailing list