diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-11-09 22:41:03 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-11-09 22:41:03 +0100 |
commit | f123c200cda6376f1734ef5c155759ea2c26b0aa (patch) | |
tree | 22ea1798c293bbda4e8ace1d3c43a79c25a62b6f | |
parent | 1aaf987dca57976da0c630f207a18a90dd0979c4 (diff) |
view: Be more defensive when working with message subject.
* mumi/web/view/html.scm (issue-page): Ensure that the message subject
is always a string before comparing it.
-rw-r--r-- | mumi/web/view/html.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mumi/web/view/html.scm b/mumi/web/view/html.scm index fcb731f..4af8d5f 100644 --- a/mumi/web/view/html.scm +++ b/mumi/web/view/html.scm @@ -281,7 +281,8 @@ range. The supported arguments are the same as for " (a (@ (href ,(string-append "#" (number->string message-number)))) ,(date->string (date message))))) - ,@(if (string-suffix? previous-subject (subject message)) + ,@(if (string-suffix? (or previous-subject "") + (or (subject message) "")) '() `((div (@ (class "subject")) ,(subject message)))) (div |