real fix for secureforms
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user