mirror of
https://github.com/moodle/moodle.git
synced 2025-02-25 12:33:18 +01:00
real fix for secureforms
This commit is contained in:
parent
ea6f999dc3
commit
03b80ff60d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user