changed data_submitted for secureform; added sesskey

This commit is contained in:
toyomoyo
2006-02-21 02:02:24 +00:00
parent bb54c1c756
commit 5af0b52558
5 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -156,7 +156,7 @@
break;
case 'update': ///update a field
if (confirm_sesskey() and $field = data_submitted()){
if (confirm_sesskey() and $field = data_submitted($CFG->wwwroot.'/mod/data/fields.php')){
$field->id = $fid;
$field->name = optional_param('name','',PARAM_NOTAGS);