[dw-free] HTML for e-mail comment notifications does not include user pic alt text
[commit: http://hg.dwscoalition.org/dw-free/rev/1161dc21aa0d]
http://bugs.dwscoalition.org/show_bug.cgi?id=2772
Add the icon alt text.
Patch by
deborah.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2772
Add the icon alt text.
Patch by
Files modified:
- cgi-bin/LJ/Comment.pm
--------------------------------------------------------------------------------
diff -r 3bcc18c882aa -r 1161dc21aa0d cgi-bin/LJ/Comment.pm
--- a/cgi-bin/LJ/Comment.pm Sat Feb 18 14:42:05 2012 +0800
+++ b/cgi-bin/LJ/Comment.pm Sat Feb 18 14:54:39 2012 +0800
@@ -1439,9 +1439,11 @@
my ( $pic, $pic_kw ) = $self->userpic;
if ( $pic && $pic->load_row ) {
- $pichtml = "<img src=\"$LJ::USERPIC_ROOT/$pic->{picid}/$pic->{userid}\" align='absmiddle' ".
- "width='$pic->{width}' height='$pic->{height}' ".
- "hspace='1' vspace='2' alt='' /> ";
+ $pichtml = "<img src=\"$LJ::USERPIC_ROOT/$pic->{picid}/$pic->{userid}\" align='absmiddle' "
+ . "width='$pic->{width}' height='$pic->{height}' "
+ . "hspace='1' vspace='2' alt='"
+ . $pic->alttext( $pic_kw )
+ . "' /> ";
}
}
--------------------------------------------------------------------------------

no subject
Or is that sanitised earlier?
no subject
LJ::ehtml( $alt ). In turn, LJ::ehtml takes care of 's (among characters) with$a =~ s/\'/&\#39;/g;.no subject
no subject