From e59a895b90988ca0cb67d5b8e44a068ff71d2667 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 10 Dec 2006 17:31:00 +0000 Subject: [PATCH] MDL-7855 Sanitize field type when importing presents into data mod --- mod/data/preset.php | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.39.5