]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20293 strict param validation support
authorskodak <skodak>
Tue, 15 Sep 2009 20:14:07 +0000 (20:14 +0000)
committerskodak <skodak>
Tue, 15 Sep 2009 20:14:07 +0000 (20:14 +0000)
lib/moodlelib.php

index ec7d6dc877183f6e83f0758ea614112869ffffdd..b35edc5a9bd5f8eb9971f026ff43dcdf592d6d23 100644 (file)
@@ -387,7 +387,7 @@ function optional_param($parname, $default=NULL, $type=PARAM_CLEAN) {
  * @param string $debuginfo optional debug information
  * @return mixed the $param value converted to PHP type or invalid_parameter_exception
  */
-function validate_param($param, $type, $allownull=true, $debuginfo='') {
+function validate_param($param, $type, $allownull=false, $debuginfo='') {
     if (is_null($param)) {
         if ($allownull) {
             return null;