mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
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:
parent
fd6abcc87a
commit
038ba6aa30
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user