From: skodak Date: Sun, 10 Dec 2006 17:31:00 +0000 (+0000) Subject: MDL-7855 Sanitize field type when importing presents into data mod X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e59a895b90988ca0cb67d5b8e44a068ff71d2667;p=moodle.git MDL-7855 Sanitize field type when importing presents into data mod --- diff --git a/mod/data/preset.php b/mod/data/preset.php index 30c49d6c21..9333378a77 100644 --- a/mod/data/preset.php +++ b/mod/data/preset.php @@ -543,6 +543,7 @@ class PresetImporter { $f->$param = $value[0]['#']; } $f->dataid = $this->data->id; + $f->type = clean_param($f->type, PARAM_ALPHA); $fields[] = $f; }