mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:30:55 +01:00
MDL-20901 fixed input validation
This commit is contained in:
parent
adef30995b
commit
441bef0f7a
@ -1,6 +1,7 @@
|
||||
|
||||
<form id="subscriberform" method="post" action="subscribers.php">
|
||||
<input type="hidden" name="id" value="<?php echo $id?>" />
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
<table align="center" border="0" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<td valign="top">
|
||||
|
@ -102,7 +102,7 @@ $strsubscribers = get_string("subscribers", "forum");
|
||||
$strforums = get_string("forums", "forum");
|
||||
|
||||
$searchtext = optional_param('searchtext', '', PARAM_RAW);
|
||||
if ($frm = data_submitted()) {
|
||||
if ($frm = data_submitted() and confirm_sesskey()) {
|
||||
|
||||
/// A form was submitted so process the input
|
||||
if (!empty($frm->add) and !empty($frm->addselect)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user