From 07fe38c02b78da0baef011865e0cd735628a9afa Mon Sep 17 00:00:00 2001 From: michaelpenne Date: Wed, 26 Jan 2005 00:30:46 +0000 Subject: [PATCH] added function lesson_clean_data_submitted(), this cleans the object made from data_submitted() function (forgot comments before) --- mod/lesson/locallib.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mod/lesson/locallib.php b/mod/lesson/locallib.php index 5a5bd63a0d..3cbb7ef974 100644 --- a/mod/lesson/locallib.php +++ b/mod/lesson/locallib.php @@ -1134,9 +1134,15 @@ function lesson_check_nickname($name) { /*******************************************************************/ function lesson_clean_data_submitted() { -// -// +// this function runs through all post/get data submitted to a page +// and runs clean_param on each +// returns an object + + // get the data $form = data_submitted(); + + // run through and clean each form value + // detect arrays as well and process them accordingly foreach ($form as $valuename => $formvalue) { if (is_array($formvalue)) { foreach ($formvalue as $index => $formsubvalue) { -- 2.39.5