From 9058fb2685f8b9b001908829d7edcbad2b7e58dd Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 17 Apr 2011 03:17:00 -0400 Subject: "X or ''|e" -> "(X or '')|e" for proper escaping. --- libbe/command/html.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libbe') diff --git a/libbe/command/html.py b/libbe/command/html.py index a53690e..c1fdb44 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -743,7 +743,7 @@ div.root.comment { {{ bug.status|e }} {{ bug.severity|e }} {{ bug.summary|e }} - {{ bug.time_string or ''|e }} + {{ (bug.time_string or '')|e }} """, ## @@ -765,13 +765,13 @@ div.root.comment { Severity : {{ bug.severity|e }} Assigned : - {{ bug.assigned or ''|e }} + {{ (bug.assigned or '')|e }} Reporter : - {{ bug.reporter or ''|e }} + {{ (bug.reporter or '')|e }} Creator : - {{ bug.creator or ''|e }} + {{ (bug.creator or '')|e }} Created : - {{ bug.time_string or ''|e }} + {{ (bug.time_string or '')|e }} Summary : {{ bug.summary|e }} @@ -815,8 +815,8 @@ div.root.comment { --------- Comment ---------
ID: {{ comment.uuid }}
Short name: {{ comment.id.user() }}
- From: {{ comment.author or ''|e }}
- Date: {{ comment.date or ''|e }}
+ From: {{ (comment.author or '')|e }}
+ Date: {{ (comment.date or '')|e }}

{{ format_body(bug, comment) }} -- cgit