real fix for secureforms

This commit is contained in:
toyomoyo 2006-02-20 09:34:13 +00:00
parent ea6f999dc3
commit 03b80ff60d

View File

@ -80,7 +80,7 @@
switch($mode){
case 'add': ///add a new field
if (confirm_sesskey() and $field = data_submitted('fields.php')){
if (confirm_sesskey() and $field = data_submitted($CFG->wwwroot.'/mod/data/fields.php')){
$sql = 'SELECT * from '.$CFG->prefix.'data_fields WHERE name LIKE "'.$field->name.
'" AND dataid = '.$data->id;