[dw-free] Username in subject breaks entry link in active entries module
[commit: http://hg.dwscoalition.org/dw-free/rev/a94a9ded49c3]
http://bugs.dwscoalition.org/show_bug.cgi?id=2618
Strip html from the subject so that the link to the entry doesn't break in
the S2 active entries module.
Patch by
penemue.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2618
Strip html from the subject so that the link to the entry doesn't break in
the S2 active entries module.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/upgrading/s2layers/core2.s2
-------------------------------------------------------------------------------- diff -r c0bc4044e818 -r a94a9ded49c3 bin/upgrading/s2layers/core2.s2 --- a/bin/upgrading/s2layers/core2.s2 Thu Jun 24 18:41:59 2010 -0500 +++ b/bin/upgrading/s2layers/core2.s2 Thu Jun 24 19:10:57 2010 -0500 @@ -3834,7 +3834,7 @@ function print_module_active() { open_module( "active", $*text_module_active_entries, "" ); var int i = 1; foreach var Entry activeentry ( $activeentries ) { - var string subject = ( $activeentry.subject != "" ? $activeentry.subject : "$*text_nosubject" ); + var string subject = ( $activeentry.subject != "" ? striphtml($activeentry.subject) : "$*text_nosubject" ); $subjects[size $subjects] = """$i: <a href="$activeentry.permalink_url">$subject</a>"""; $i++; } --------------------------------------------------------------------------------