diff --git a/backup/util/ui/base_moodleform.class.php b/backup/util/ui/base_moodleform.class.php index fb0e975acfd..c5ba97d1d85 100644 --- a/backup/util/ui/base_moodleform.class.php +++ b/backup/util/ui/base_moodleform.class.php @@ -73,6 +73,11 @@ abstract class base_moodleform extends moodleform { */ function __construct(base_ui_stage $uistage, $action=null, $customdata=null, $method='post', $target='', $attributes=null, $editable=true) { $this->uistage = $uistage; + $attributes = (array)$attributes; + if (!isset($attributes['enctype'])) { + $attributes['enctype'] = 'application/x-www-form-urlencoded'; // Enforce compatibility with our max_input_vars hack. + } + parent::__construct($action, $customdata, $method, $target, $attributes, $editable); } /** diff --git a/backup/util/ui/restore_ui_stage.class.php b/backup/util/ui/restore_ui_stage.class.php index a884fc721ca..e32608d07e0 100644 --- a/backup/util/ui/restore_ui_stage.class.php +++ b/backup/util/ui/restore_ui_stage.class.php @@ -697,6 +697,7 @@ class restore_ui_stage_process extends restore_ui_stage { $html .= html_writer::start_tag('form', array( 'action' => $url->out_omit_querystring(), 'class' => 'backup-restore', + 'enctype' => 'application/x-www-form-urlencoded', // Enforce compatibility with our max_input_vars hack. 'method' => 'post')); foreach ($url->params() as $name => $value) { $html .= html_writer::empty_tag('input', array( diff --git a/grade/report/grader/index.php b/grade/report/grader/index.php index a0b082ad4e2..fe05b0ef680 100644 --- a/grade/report/grader/index.php +++ b/grade/report/grader/index.php @@ -156,7 +156,7 @@ $reporthtml = $report->get_grade_table(); // print submit button if ($USER->gradeediting[$course->id] && ($report->get_pref('showquickfeedback') || $report->get_pref('quickgrading'))) { - echo '