Merged MDL-7493 further fix: strip_tags from title strings because the titles may have HTML in them.

This commit is contained in:
moodler 2007-12-20 01:51:33 +00:00
parent 7bb03e8a7b
commit 1f967c82ff

View File

@ -334,8 +334,8 @@ class block_base {
if (!empty($CFG->allowuserblockhiding)) {
//Accessibility: added 'alt' text for the +- icon.
//Theme the buttons using, Admin - Miscellaneous - smartpix.
$strshow = addslashes_js(get_string('showblocka', 'access', $this->title));
$strhide = addslashes_js(get_string('hideblocka', 'access', $this->title));
$strshow = addslashes_js(get_string('showblocka', 'access', strip_tags($this->title)));
$strhide = addslashes_js(get_string('hideblocka', 'access', strip_tags($this->title)));
$title .= '<input type="image" src="'.$CFG->pixpath.'/t/switch_minus.gif" '.
'id="togglehide_inst'.$this->instance->id.'" '.
'onclick="elementToggleHide(this, true, function(el) {'.