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:
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user