MDL-20901 fixed input validation
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@
|
||||
|
||||
// Make sure this is a legitimate posting
|
||||
|
||||
if (!$formdata = data_submitted()) {
|
||||
if (!$formdata = data_submitted() or !confirm_sesskey()) {
|
||||
print_error('cannotcallscript');
|
||||
}
|
||||
|
||||
|
||||
@@ -135,6 +135,7 @@
|
||||
echo "<form method=\"post\" action=\"save.php\" id=\"surveyform\">";
|
||||
echo '<div>';
|
||||
echo "<input type=\"hidden\" name=\"id\" value=\"$id\" />";
|
||||
echo "<input type=\"hidden\" name=\"sesskey\" value=\"".sesskey()."\" />";
|
||||
|
||||
echo $OUTPUT->box(format_module_intro('survey', $survey, $cm->id), 'generalbox boxaligncenter bowidthnormal', 'intro');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user