I am trying to sanitize the input parameters using the mechanism that is built-in into CMSMS. For this purpose, in the function "SetParameters()" I am defining this:
Code: Select all
function SetParameters()
{
$this->RestrictUnknownParams();
$this->SetParameterType('step', CLEAN_STRING);
$this->mCachable = false;
}
Code: Select all
$step = $params['step'];
echo "step = '$step' <br />";
If I am reading the parameters thru $_REQUEST, $_POST and $_GET everything seems to work:
Code: Select all
$step = $_REQUEST['step'];
Please tell me what am I doing wrong.
Note: I am using the CMSMS version 1.5.4.
Regards,
Razvan