[dw-free] LJ chokes on user tags in our feeds
[commit: http://hg.dwscoalition.org/dw-free/rev/68412c5257d5]
http://bugs.dwscoalition.org/show_bug.cgi?id=481
Fix extra closing tags on ljuser span.
Patch by
afuna.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=481
Fix extra closing tags on ljuser span.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- cgi-bin/cleanhtml.pl
-------------------------------------------------------------------------------- diff -r 6c26c423dbe1 -r 68412c5257d5 cgi-bin/cleanhtml.pl --- a/cgi-bin/cleanhtml.pl Sat Mar 21 23:54:27 2009 +0000 +++ b/cgi-bin/cleanhtml.pl Sun Mar 22 00:31:38 2009 +0000 @@ -849,9 +849,12 @@ sub clean next TOKEN if @eatuntil; } - if ($eating_ljuser_span && $tag eq "span") { - $eating_ljuser_span = 0; - $newdata .= $opts->{'textonly'} ? $ljuser_text_node : LJ::ljuser($ljuser_text_node); + if ( $eating_ljuser_span ) { + if ( $tag eq "span" ) { + $eating_ljuser_span = 0; + $newdata .= $opts->{'textonly'} ? $ljuser_text_node : LJ::ljuser($ljuser_text_node); + } + next TOKEN; } --------------------------------------------------------------------------------