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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jun 9 13:20:12 EDT 2008


Author: jondaley
Date: 2008-06-09 13:20:12 -0400 (Mon, 09 Jun 2008)
New Revision: 6538

Modified:
   plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php
Log:
now it is validated in all places

Modified: plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php	2008-06-09 17:14:03 UTC (rev 6537)
+++ plog/branches/lifetype-1.2/class/action/admin/adminsendtrackbacksaction.class.php	2008-06-09 17:20:12 UTC (rev 6538)
@@ -32,6 +32,8 @@
         	$this->AdminAction( $actionInfo, $request );
 
         	$this->registerFieldValidator( "postId", new IntegerValidator(), false );
+        	$this->registerFieldValidator( "postLink", new ArrayValidator( new HttpUrlValidator() ), true);
+        	$this->registerFieldValidator( "trackbackLink", new ArrayValidator( new HttpUrlValidator() ), true);
 
 			$view = new AdminPostsListView( $this->_blogInfo );
 			$view->setErrorMessage( $this->_locale->tr("error_incorrect_article_id" ));
@@ -47,11 +49,8 @@
 
                 // fetch the validated data
 			$this->_postId = $this->_request->getValue( "postId" );
-
-                // fetch the un-validated data. TODO: is this safe?
 			$this->_postLinks = $this->_request->getValue( "postLink" );
 			$this->_trackbackLinks = $this->_request->getValue( "trackbackLink" );
-            
 
                 // Need to do validation here because we need one of the validations to pass
 			$val = new ArrayValidator( new HttpUrlValidator() );



More information about the pLog-svn mailing list