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 21, 2009
1 parent 73f67f3 commit 622ba79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tag/manage.php
Expand Up @@ -112,6 +112,10 @@
} }
break; break;
case 'addofficialtag': case 'addofficialtag':
if (!data_submitted() or !confirm_sesskey()) {
break;
}

$new_otags = explode(',', optional_param('otagsadd', '', PARAM_TAG)); $new_otags = explode(',', optional_param('otagsadd', '', PARAM_TAG));
$notice = ''; $notice = '';
foreach ( $new_otags as $new_otag ) { foreach ( $new_otags as $new_otag ) {
Expand Down Expand Up @@ -140,6 +144,7 @@
print('<input type="hidden" name="action" value="addofficialtag">'); print('<input type="hidden" name="action" value="addofficialtag">');
print('<div class="tag-management-form generalbox"><label class="accesshide" for="id_otagsadd">'. get_string('addotags', 'tag') .'</label>'. print('<div class="tag-management-form generalbox"><label class="accesshide" for="id_otagsadd">'. get_string('addotags', 'tag') .'</label>'.
'<input name="otagsadd" id="id_otagsadd" type="text">'. '<input name="otagsadd" id="id_otagsadd" type="text">'.
'<input type="hidden" name="sesskey" value="'.sesskey().'">'.
'<input name="addotags" value="'. get_string('addotags', 'tag') .'" onclick="skipClientValidation = true;" id="id_addotags" type="submit">'. '<input name="addotags" value="'. get_string('addotags', 'tag') .'" onclick="skipClientValidation = true;" id="id_addotags" type="submit">'.
'</div>'); '</div>');
print('</form>'); print('</form>');
Expand Down

0 comments on commit 622ba79

Please sign in to comment.