change value of PARAM_RAW from 0 to 666, becasue we need to detect incorrect param types (such as PARAM_IND) and incorrect order - optional_param('xx', PARAM_INT, 0)

This might break faulty code...
This commit is contained in:
skodak 2006-03-07 19:20:23 +00:00
parent fd6abcc87a
commit 038ba6aa30

View File

@ -93,9 +93,11 @@ define('HOURMINS', 60);
/// or clean_param() should have a specified type of parameter. //////////////
/**
* PARAM_RAW specifies a parameter that is not cleaned/processed in any way.
* PARAM_RAW specifies a parameter that is not cleaned/processed in any way;
* originally was 0, but changed because we need to detect unknown
* parameter types and swiched order in clean_param().
*/
define('PARAM_RAW', 0x0000);
define('PARAM_RAW', 666);
/**
* PARAM_CLEAN - obsoleted, please try to use more specific type of parameter.