Permalink
Browse files

MDL-20901 fixed input validation

  • Loading branch information...
1 parent 622ba79 commit 561020d00b38976b34843b20a9f690423440dbea @skodak skodak committed Nov 21, 2009
Showing with 4 additions and 0 deletions.
  1. +1 −0 admin/mnet/delete.html
  2. +2 −0 admin/mnet/delete.php
  3. +1 −0 admin/mnet/peers.html
View
@@ -35,6 +35,7 @@
<form method="post" action="delete.php">
<input type="hidden" name="sesskey" value="<?php echo $USER->sesskey ?>" />
<input type="hidden" name="hostid" value="<?php echo $mnet_peer->id; ?>" />
+ <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<input type="hidden" name="step" value="delete" />
<input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
</form>
View
@@ -31,6 +31,8 @@
redirect('index.php', get_string('postrequired','mnet') ,7);
}
+ require_sesskey();
+
if ('verify' == $step) {
$mnet_peer = new mnet_peer();
$mnet_peer->set_id($hostid);
View
@@ -55,6 +55,7 @@
<div>
<input type="hidden" name="hostid" value="<?php echo $host->id; ?>" />
<input type="hidden" name="step" value="verify" />
+ <input type="hidden" name="sesskey" value="<?php echo sesskey(); ?>" />
<input type="submit" name="submit" value="<?php print_string('delete'); ?>"/>
</div>
</form>

0 comments on commit 561020d

Please sign in to comment.