checkGetParams() : bool
checkParameter(string $type, string $key, mixed $value) : bool
see | \cRequestValidator::checkParams() |
---|
string
GET or POST
string
the key of the parameter
mixed
the value of the parameter
bool
True if the parameter is finecheckParams() : bool
Parameters which aren't defined in config.http_check.php are considered to be fine
bool
True if every parameter is finecheckPostParams() : bool
getBadParameter() : string
string
the key of the bad parametercheckArray(array $arr, string $type) : bool
array
the array which has to be checked
string
GET or POST
bool
true if everything is fine.logHackTrial()
__construct() : void
CON_ENVIRONMENT . '/config.http_check.php'.
\cFileNotFoundException |
if the configuration can not be loaded |
---|
$_blacklist : array
If any of these is set the request will be invalid
$_check : array
Structure has to be:
$check['GET']['param1'] = VALIDATE_FORMAT;
$check['POST']['param2'] = VALIDATE_FORMAT;
Possible formats are defined as constants in top of these class file.
$_configPath : string
$_failure : string
$_log : boolean
$_logPath : string
$_mode : string
$_instance : \cRequestValidator
CHECK_AREASTRING : string
CHECK_BELANG : string
CHECK_HASH32 : string
CHECK_INTEGER : string
CHECK_PATHSTRING : string
CHECK_PRIMITIVESTRING : string
CHECK_STRING : string