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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu May 31 17:09:59 EDT 2007


Author: oscar
Date: 2007-05-31 17:09:59 -0400 (Thu, 31 May 2007)
New Revision: 5473

Modified:
   plog/branches/lifetype-1.2/class/action/searchaction.class.php
Log:
Some more changes related to filters

Modified: plog/branches/lifetype-1.2/class/action/searchaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/searchaction.class.php	2007-05-31 21:07:51 UTC (rev 5472)
+++ plog/branches/lifetype-1.2/class/action/searchaction.class.php	2007-05-31 21:09:59 UTC (rev 5473)
@@ -7,7 +7,7 @@
     lt_include( PLOG_CLASS_PATH."class/dao/searchengine.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/view/blogtemplatedview.class.php" );
     lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
-    lt_include( PLOG_CLASS_PATH."class/data/textfilter.class.php" );
+    lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );
     lt_include( PLOG_CLASS_PATH."class/net/http/httpvars.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/view/errorview.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/data/pager/pager.class.php" );
@@ -30,8 +30,7 @@
         function perform()
         {
 			// get the search terms that have already been validated...
-			$tf = new Textfilter();			
-            $this->_searchTerms = $tf->filterAllHTML( $this->_request->getValue( "searchTerms" ));
+            $this->_searchTerms = $this->_request->getFilteredValue( "searchTerms", new HtmlFilter());
 		
 			// check if the search feature is disabled in this site...
 			$config =& Config::getConfig();



More information about the pLog-svn mailing list