[pLog-svn] r3433 - plog/trunk/class/view/admin

Jon Daley plogworld at jon.limedaley.com
Thu May 18 11:26:59 GMT 2006


 	This looks really bizarre?  You are trying to replace & 
with & only if it isn't already &?  There must be a better way to 
do that.

Also, perhaps you really want to replace a & if it isn't followed by 
"[a-z0-9]+;" to cover all cases of escaped html?


On Thu, 18 May 2006, mark at devel.lifetype.net wrote:
> Author: mark
> Date: 2006-05-18 10:46:03 +0000 (Thu, 18 May 2006)
> New Revision: 3433
>
> Modified:
>   plog/trunk/class/view/admin/admineditpostview.class.php
> Log:
> Fixed the bug here: http://bugs.lifetype.net/view.php?id=896
>
> Modified: plog/trunk/class/view/admin/admineditpostview.class.php
> ===================================================================
> --- plog/trunk/class/view/admin/admineditpostview.class.php	2006-05-18 10:41:43 UTC (rev 3432)
> +++ plog/trunk/class/view/admin/admineditpostview.class.php	2006-05-18 10:46:03 UTC (rev 3433)
> @@ -50,8 +50,8 @@
>
> 	            // set information about the post itself into the view
> 	            $this->setValue( "postTopic", $this->_article->getTopic());
> -	            $this->setValue( "postText", preg_replace('/&/', '&', $this->_article->getIntroText()));
> -	            $this->setValue( "postExtendedText", preg_replace('/&/','&',$this->_article->getExtendedText()));
> +	            $this->setValue( "postText", preg_replace('/(&|&)/', '&', $this->_article->getIntroText()));
> +	            $this->setValue( "postExtendedText", preg_replace('/(&|&)/','&',$this->_article->getExtendedText()));
> 	            $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://devel.lifetype.net/mailman/listinfo/plog-svn
>

**************************************
Jon Daley
http://jon.limedaley.com/

The difference between genius and stupidity
is that genius has its limits.
-- Anonymous


More information about the pLog-svn mailing list