Skip to content

Commit

Permalink
MDL-20901 fixed input validation
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Nov 19, 2009
1 parent 6735f4a commit f5c2028
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions blog/preferences.html
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion blog/preferences.php
Expand Up @@ -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) {
Expand Down

0 comments on commit f5c2028

Please sign in to comment.