[dw-free] http://bugs.dwscoalition.org/show_bug.cgi?id=2035
[commit: http://hg.dwscoalition.org/dw-free/rev/cec770c33c9a]
http://bugs.dwscoalition.org/show_bug.cgi?id=2035
Fix error in search results if an entry only contained HTML.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2035
Fix error in search results if an entry only contained HTML.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- bin/worker/sphinx-search-gm
-------------------------------------------------------------------------------- diff -r 7187be3b25d2 -r cec770c33c9a bin/worker/sphinx-search-gm --- a/bin/worker/sphinx-search-gm Tue Nov 03 01:48:39 2009 +0000 +++ b/bin/worker/sphinx-search-gm Tue Nov 03 01:50:25 2009 +0000 @@ -87,6 +87,7 @@ sub sphinx_search { $match->{entry} = $entry->event_text; $match->{entry} =~ s#<(?:br|p)\s*/?># #gi; $match->{entry} = LJ::strip_html( $match->{entry} ); + $match->{entry} ||= "(this entry only contains html content)"; # we don't munge the subject... just clean it $match->{subject} = $entry->subject_text || '(no subject)'; --------------------------------------------------------------------------------
no subject
(no subject)