Skip to content

Commit

Permalink
MDL-7861 fixed regression caused by one of previous commit related to…
Browse files Browse the repository at this point in the history
… print_single_button() and friends - old & handling restored, thanks Eloy for spotting the problem :-)
  • Loading branch information
skodak committed Jan 22, 2007
1 parent 85bb13e commit 2463ef8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/weblib.php
Expand Up @@ -2901,9 +2901,10 @@ function print_box_end($return=false) {
*/
function print_single_button($link, $options, $label='OK', $method='get', $target='_self', $return=false) {
$output = '';
$link = str_replace('"', '"', $link); //basic XSS protection
$output .= '<div class="singlebutton">';
// taking target out, will need to add later target="'.$target.'"
$output .= '<form action="'. s($link) .'" method="'. $method .'">';
$output .= '<form action="'. $link .'" method="'. $method .'">';
$output .= '<fieldset class="invisiblefieldset">';
if ($options) {
foreach ($options as $name => $value) {
Expand Down

0 comments on commit 2463ef8

Please sign in to comment.