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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu May 31 16:31:53 EDT 2007


Author: oscar
Date: 2007-05-31 16:31:53 -0400 (Thu, 31 May 2007)
New Revision: 5470

Modified:
   plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php
Log:
Added an input filter for the blogName parameter


Modified: plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php	2007-05-31 20:30:12 UTC (rev 5469)
+++ plog/branches/lifetype-1.2/class/summary/action/doblogregistration.class.php	2007-05-31 20:31:53 UTC (rev 5470)
@@ -11,6 +11,7 @@
     lt_include( PLOG_CLASS_PATH."class/data/validator/domainvalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/net/http/subdomains.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );	
+    lt_include( PLOG_CLASS_PATH."class/data/filter/htmlfilter.class.php" );    
 
 	/**
 	 * registers a blog
@@ -21,6 +22,9 @@
         function doBlogRegistration( $actionInfo, $request )
         {
 	    	$this->RegisterAction( $actionInfo, $request );
+	
+			// input filters
+			$this->_request->registerFilter( "blogName", new HtmlFilter( true ));
 	    	
 	    	// data validation
 	    	//$this->registerFieldValidator( "userId", new IntegerValidator());



More information about the pLog-svn mailing list