My module keeps banging the admin log with: "Module is not properly cleaning input params". (admin_log table was 30MB)
How to clean the input params?
Running cmsms 1.11.6 on
php 5.3.22
mysql 5.5.30
apache
[Solved]Module is not properly cleaning input params
[Solved]Module is not properly cleaning input params
Last edited by akke on Wed May 22, 2013 8:09 am, edited 1 time in total.
Re: Module is not properly cleaning input params
Check News module as an example: http://viewsvn.cmsmadesimple.org/filede ... module.php
Code: Select all
function InitializeFrontend()
{
$this->RestrictUnknownParams();
$this->SetParameterType('pagelimit',CLEAN_INT);
$this->SetParameterType('showall',CLEAN_INT);
$this->SetParameterType('detailpage',CLEAN_STRING);
$this->SetParameterType('detailtemplate',CLEAN_STRING);
}
Re: Module is not properly cleaning input params
Thank you, Jos! Fixed and taken care of.