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

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jun 9 11:23:20 EDT 2008


Author: mark
Date: 2008-06-09 11:23:20 -0400 (Mon, 09 Jun 2008)
New Revision: 6530

Modified:
   plog/branches/lifetype-1.2/class/action/addtrackbackaction.class.php
Log:
Damn, the stringvalidator will destory html entities in url, we should change it to httpurlvalidator, it will be better.

Modified: plog/branches/lifetype-1.2/class/action/addtrackbackaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addtrackbackaction.class.php	2008-06-09 10:34:05 UTC (rev 6529)
+++ plog/branches/lifetype-1.2/class/action/addtrackbackaction.class.php	2008-06-09 15:23:20 UTC (rev 6530)
@@ -12,7 +12,7 @@
     lt_include( PLOG_CLASS_PATH."class/plugin/pluginmanager.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/net/client.class.php" );
     lt_include( PLOG_CLASS_PATH."class/dao/trackbacks.class.php" );
-	lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );	
+	lt_include( PLOG_CLASS_PATH."class/data/validator/httpurlvalidator.class.php" );	
 	lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
 	lt_include( PLOG_CLASS_PATH."class/security/pipeline.class.php" );
 	
@@ -30,10 +30,9 @@
 			$this->Action( $actionInfo, $request );
 			
 			// we need certain data
-			$this->registerFieldValidator( "id", new IntegerValidator());
-			$this->registerFieldValidator( "url", new StringValidator());
-			$this->setValidationErrorView( new TrackbackView( "Error incorrect parameters",
-															  true ));
+			$this->registerFieldValidator( "id", new IntegerValidator() );
+			$this->registerFieldValidator( "url", new HttpUrlValidator() );
+			$this->setValidationErrorView( new TrackbackView( "Error incorrect parameters", true ) );
 		}
 				
 		/**



More information about the pLog-svn mailing list