Skip to content

Commit 763ab68

Browse files
laurentdavidsrobotta
authored andcommitted
Fix preview submission (no sesskey)
1 parent 6aa0ea8 commit 763ab68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

classes/output/renderer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,7 @@ public function print_preview_formend($url, $submitstr, $resetstr) {
378378
$output .= \html_writer::start_tag('div');
379379
$output .= \html_writer::empty_tag('input', ['type' => 'submit', 'name' => 'submit', 'value' => $submitstr,
380380
'class' => 'btn btn-primary']);
381+
$output .= \html_writer::empty_tag('input', ['type' => 'hidden', 'name' => 'sesskey', 'value' => sesskey()]);
381382
$output .= ' ';
382383
$output .= \html_writer::tag('a', $resetstr, ['href' => $url, 'class' => 'btn btn-secondary mr-1']);
383384
$output .= \html_writer::end_tag('div') . "\n";

0 commit comments

Comments
 (0)