buggy_referer is dead! Long live buggy_referer!

Should be fixed now.  As a bonus, I've removed all the uses of
HTTP_POST_VARS from all scripts.

All forms should use the new data_submitted() function to collect
form data (it does the match_referer thing internally now).

Much nicer.
This commit is contained in:
moodler
2003-01-02 14:49:23 +00:00
parent fb964e0c78
commit 36b4f9852e
26 changed files with 66 additions and 67 deletions
+2 -2
View File
@@ -23,11 +23,11 @@
/// If data submitted, then process and store.
if (match_referer() && isset($HTTP_POST_VARS)) {
if ($form = data_submitted()) {
$timenow = time();
if (! set_field("course_sections", "summary", $summary, "id", $section->id)) {
if (! set_field("course_sections", "summary", $form->summary, "id", $section->id)) {
error("Could not update the summary!");
}