MDL-58220 oauth2: tighten the param types

These come from external sources - but still should not contain crazy stuff.
This commit is contained in:
Damyon Wiese 2017-03-28 11:36:33 +08:00
parent 440df5fb7f
commit 68ecf7635b

View File

@ -49,7 +49,7 @@ class endpoint extends persistent {
'type' => PARAM_INT
),
'name' => array(
'type' => PARAM_RAW,
'type' => PARAM_ALPHANUMEXT,
),
'url' => array(
'type' => PARAM_URL,