[pLog-svn] r1277 - plog/trunk/class/action/admin

oscar at devel.plogworld.net oscar at devel.plogworld.net
Wed Mar 2 08:04:53 GMT 2005


Author: oscar
Date: 2005-03-02 08:04:52 +0000 (Wed, 02 Mar 2005)
New Revision: 1277

Modified:
   plog/trunk/class/action/admin/adminpostmanagementcommonaction.class.php
Log:
htmlarea was leaving some crap behind after typing in the second textarea and after that removing it completely (there were some blannk spaces) I've added a call to trim() before saving the post and now it should work.


Modified: plog/trunk/class/action/admin/adminpostmanagementcommonaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminpostmanagementcommonaction.class.php	2005-03-02 07:49:06 UTC (rev 1276)
+++ plog/trunk/class/action/admin/adminpostmanagementcommonaction.class.php	2005-03-02 08:04:52 UTC (rev 1277)
@@ -118,8 +118,8 @@
 		
 		function _fetchCommonData()
 		{
-        	$this->_postText     = Textfilter::xhtmlize($this->_request->getValue( "postText" ));
-            $this->_postExtendedText = Textfilter::xhtmlize($this->_request->getValue( "postExtendedText" ));
+        	$this->_postText     = trim(Textfilter::xhtmlize($this->_request->getValue( "postText" )));
+            $this->_postExtendedText = trim(Textfilter::xhtmlize($this->_request->getValue( "postExtendedText" )));
             $this->_postTopic    = $this->_request->getValue( "postTopic" );
             $this->_postCategories = $this->_request->getValue( "postCategories" );
 			$this->_postSlug = $this->_request->getValue( "postSlug" );			




More information about the pLog-svn mailing list