Permalink
Browse files

MDL-20901 fixed input validation

  • Loading branch information...
1 parent b533531 commit 6d8f2055299cf7282836af42455353ed86f75b51 @skodak skodak committed Nov 19, 2009
Showing with 2 additions and 1 deletion.
  1. +1 −0 blog/preferences.html
  2. +1 −1 blog/preferences.php
View
@@ -8,6 +8,7 @@
<tr>
<td colspan="2" align="center">
<input type="hidden" name="courseid" value="<?php echo $courseid; ?>" />
+ <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<input type="submit" value="<?php print_string("savechanges"); ?>" />
<input type="button" value="<?php print_string('cancel'); ?>" onclick="javascript:history.go(-1)" /></td>
</tr>
View
@@ -22,7 +22,7 @@
/// If data submitted, then process and store.
- if (data_submitted()) {
+ if (data_submitted() and confirm_sesskey()) {
$pagesize = required_param('pagesize', PARAM_INT);
if ($pagesize < 1) {

0 comments on commit 6d8f205

Please sign in to comment.