projects
/
software
/
mumi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aaf987
)
view: Be more defensive when working with message subject.
author
Ricardo Wurmus
<rekado@elephly.net>
Fri, 9 Nov 2018 21:41:03 +0000
(22:41 +0100)
committer
Ricardo Wurmus
<rekado@elephly.net>
Fri, 9 Nov 2018 21:41:03 +0000
(22:41 +0100)
* mumi/web/view/html.scm (issue-page): Ensure that the message subject
is always a string before comparing it.
mumi/web/view/html.scm
patch
|
blob
|
history
diff --git
a/mumi/web/view/html.scm
b/mumi/web/view/html.scm
index fcb731f02812dc5cfe7a2dcbd8863c77632c725d..4af8d5fc3d5f12382318a790078078c42dbfa170 100644
(file)
--- 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