Escape the alt text; include the mood.

        Patch by foxfirefey. 

diffs (14 lines):

diff -r 02b969f3044b -r 25508e22121e htdocs/moodlist.bml
--- a/htdocs/moodlist.bml       Sat Jun 27 16:49:09 2009 +0000
+++ b/htdocs/moodlist.bml       Sun Jun 28 01:28:39 2009 +0000
@@ -101,7 +101,9 @@ body<=
             # Output each of the displayed moods
             foreach my $mood (@show_moods) {
                 if (LJ::get_mood_picture($theme->{'moodthemeid'}, 
LJ::mood_id($mood), \ my %pic)) {
-                    $ret .= "<td align='center'><img align='absmiddle' 
alt='$theme->{name}' src=\"$pic{'pic'}\" width='$pic{'w'}' height='$pic{'h'}' 
hspace='2' vspace='2' />" .
+                    $ret .= "<td align='center'><img align='absmiddle' alt='" .
+                        LJ::ehtml( $theme->{name} . ": " . $mood ) .
+                        "' src=\"$pic{'pic'}\" width='$pic{'w'}' 
height='$pic{'h'}' hspace='2' vspace='2' />" .
                         "</td>\n";
                 } else {
                     $ret .= "<td></td>\n";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to