diff --git a/lib/weblib.php b/lib/weblib.php index faa99560227..3452b3cc9bb 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -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 .= '
'; // taking target out, will need to add later target="'.$target.'" - $output .= '
'; + $output .= ''; $output .= '
'; if ($options) { foreach ($options as $name => $value) {