[pLog-svn] r6528 - in plog/branches/lifetype-1.2/class: dao/userdata view/admin

Jon Daley plogworld at jon.limedaley.com
Mon Jun 9 07:34:55 EDT 2008


 	Should the variable be validated in the action?  Oh, right, now I 
remember.  The view has the validation code right below it already, that's 
why I didn't change it before.

On Mon, 9 Jun 2008, mark at devel.lifetype.net wrote:
> 1. We should not use HttpVars::getRequestValue() in any situation, unless we need the raw request.
>
> 2. We can use $this->_request->getValue() or $this->_request->getFilteredValue() in $view. It better to use getFilteredValue(), since there is no registerFiledValidator in $view. So, we can get a cleaned input data from getFilteredValue() function.

> Modified: plog/branches/lifetype-1.2/class/view/admin/adminsiteuserslistview.class.php
> ===================================================================
> --- plog/branches/lifetype-1.2/class/view/admin/adminsiteuserslistview.class.php	2008-06-09 08:08:04 UTC (rev 6527)
> +++ plog/branches/lifetype-1.2/class/view/admin/adminsiteuserslistview.class.php	2008-06-09 10:21:48 UTC (rev 6528)
> @@ -41,7 +41,7 @@
> 		 */
> 		function getStatusFromRequest()
> 		{
> -			$status = HttpVars::getRequestValue( "status" );
> +			$status = $this->_request->getFilteredValue( "status", new HtmlFilter() );


More information about the pLog-svn mailing list