[pLog-svn] r6688 - plog/branches/lifetype-1.2/class/action

mark at devel.lifetype.net mark at devel.lifetype.net
Tue Jul 1 01:41:15 EDT 2008


Author: mark
Date: 2008-07-01 01:41:15 -0400 (Tue, 01 Jul 2008)
New Revision: 6688

Modified:
   plog/branches/lifetype-1.2/class/action/defaultaction.class.php
   plog/branches/lifetype-1.2/class/action/searchaction.class.php
Log:
We should not allow the html in searchTerms.

Modified: plog/branches/lifetype-1.2/class/action/defaultaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/defaultaction.class.php	2008-07-01 05:37:16 UTC (rev 6687)
+++ plog/branches/lifetype-1.2/class/action/defaultaction.class.php	2008-07-01 05:41:15 UTC (rev 6688)
@@ -30,7 +30,7 @@
         {
 			$this->BlogAction( $actionInfo, $request );
 			
-			$this->registerFieldValidator( "searchTerms", new StringValidator( true ), true );
+			$this->registerFieldValidator( "searchTerms", new StringValidator(), true );
 			$this->registerFieldValidator( "postCategoryId", new IntegerValidator(), true );
 			$this->registerFieldValidator( "postCategoryName", new StringValidator( ), true );
 			$this->registerFieldValidator( "userId", new IntegerValidator(), true );

Modified: plog/branches/lifetype-1.2/class/action/searchaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/searchaction.class.php	2008-07-01 05:37:16 UTC (rev 6687)
+++ plog/branches/lifetype-1.2/class/action/searchaction.class.php	2008-07-01 05:41:15 UTC (rev 6688)
@@ -23,7 +23,7 @@
             $this->BlogAction( $actionInfo, $request );
 			
 			// data validation
-			$this->registerFieldValidator( "searchTerms", new StringValidator( true ));
+			$this->registerFieldValidator( "searchTerms", new StringValidator());
 			$this->setValidationErrorView( new ErrorView( $this->_blogInfo, "error_incorrect_search_terms" ));
         }
 		



More information about the pLog-svn mailing list