Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added function lesson_clean_data_submitted(), this cleans the object …

…made from data_submitted() function (forgot comments before)
  • Loading branch information...
commit 07fe38c02b78da0baef011865e0cd735628a9afa 1 parent 95ceba8
authored January 26, 2005

Showing 1 changed file with 8 additions and 2 deletions. Show diff stats Hide diff stats

  1. 10  mod/lesson/locallib.php
10  mod/lesson/locallib.php
@@ -1134,9 +1134,15 @@ function lesson_check_nickname($name) {
1134 1134
 
1135 1135
 /*******************************************************************/
1136 1136
 function lesson_clean_data_submitted() {
1137  
-//
1138  
-//
  1137
+// this function runs through all post/get data submitted to a page
  1138
+// and runs clean_param on each
  1139
+// returns an object
  1140
+	
  1141
+	// get the data
1139 1142
 	$form = data_submitted();
  1143
+	
  1144
+	// run through and clean each form value
  1145
+	  // detect arrays as well and process them accordingly
1140 1146
 	foreach ($form as $valuename => $formvalue) {
1141 1147
 		if (is_array($formvalue)) {
1142 1148
 			foreach ($formvalue as $index => $formsubvalue) {

0 notes on commit 07fe38c

Please sign in to comment.
Something went wrong with that request. Please try again.