summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-11-09 22:41:03 +0100
committerRicardo Wurmus <rekado@elephly.net>2018-11-09 22:41:03 +0100
commitf123c200cda6376f1734ef5c155759ea2c26b0aa (patch)
tree22ea1798c293bbda4e8ace1d3c43a79c25a62b6f
parent1aaf987dca57976da0c630f207a18a90dd0979c4 (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.scm3
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