From: skodak Date: Mon, 18 Dec 2006 08:08:15 +0000 (+0000) Subject: MDL-7861 added proper s() quoting into user image alt text and popup title X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fd9b61e04fa48fdeeab413a15280468c6f7de1ef;p=moodle.git MDL-7861 added proper s() quoting into user image alt text and popup title --- 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 .= ''; }