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

This commit is contained in:
stronk7
2008-09-25 22:39:23 +00:00
parent f01f112873
commit cb46a969f8
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -248,8 +248,8 @@ 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 name="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">