From fd9b61e04fa48fdeeab413a15280468c6f7de1ef Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 18 Dec 2006 08:08:15 +0000 Subject: [PATCH] MDL-7861 added proper s() quoting into user image alt text and popup title --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 64b9e8c954..086b39fb7e 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -557,7 +557,7 @@ function link_to_popup_window ($url, $name='popup', $linkname='click here', $url = substr($url, strlen($CFG->wwwroot)); } - $link = '$linkname"; if ($return) { return $link; @@ -3084,7 +3084,7 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $return=false } } $output .= "\"".$imagealt."\""; + " border=\"0\" width=\"$size\" height=\"$size\" alt=\"".s($imagealt)."\" />"; if ($link) { $output .= ''; } -- 2.39.5