From 2463ef818f6772c91cb0aabbd8ea73d3b976a0f8 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 22 Jan 2007 18:23:14 +0000 Subject: [PATCH] MDL-7861 fixed regression caused by one of previous commit related to print_single_button() and friends - old & handling restored, thanks Eloy for spotting the problem :-) --- lib/weblib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/weblib.php b/lib/weblib.php index faa9956022..3452b3cc9b 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) { -- 2.39.5