Protect message settings with sesskey. MDL-16688 ; backported from 19_STABLE

This commit is contained in:
stronk7
2008-09-25 22:36:18 +00:00
parent dbc804de90
commit e041c56184
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ function message_print_search() {
function message_print_settings() {
global $USER;
if ($frm = data_submitted()) {
if ($frm = data_submitted() and confirm_sesskey()) {
$pref = array();
$pref['message_showmessagewindow'] = (isset($frm->showmessagewindow)) ? '1' : '0';
+1
View File
@@ -1,5 +1,6 @@
<form id="message_settings" action="index.php" method="post">
<input type="hidden" name="tab" value="settings" />
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
<table cellpadding="5" align="center" class="message_form">