Permalink
Browse files

Ensure that tooltiptext hasn't tags.

  • Loading branch information...
1 parent 9104b63 commit 0ea03c56f2217d167556e030d0246976ab801a9c stronk7 committed Mar 25, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rsslib.php
View
@@ -23,7 +23,7 @@ function rss_get_link($courseid, $userid, $modulename, $id, $tooltiptext='') {
$rsspix = $CFG->pixpath .'/i/rss.gif';
- return '<a href="'. $rsspath .'"><img src="'. $rsspix .'" title="'. $tooltiptext .'" alt="" /></a>';
+ return '<a href="'. $rsspath .'"><img src="'. $rsspix .'" title="'. strip_tags($tooltiptext) .'" alt="" /></a>';
}
@@ -405,4 +405,4 @@ function rss_unhtmlentities($string) {
$trans_tbl = array_flip ($trans_tbl);
return strtr ($string, $trans_tbl);
}
-?>
+?>

0 comments on commit 0ea03c5

Please sign in to comment.