aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2011-04-17 03:17:00 -0400
committerW. Trevor King <wking@drexel.edu>2011-04-17 03:17:00 -0400
commit9058fb2685f8b9b001908829d7edcbad2b7e58dd (patch)
treec31f3d442a1503f0372f3906d059f8be7c603458
parent72d9a417c3bdc1c631889ba08c378d75c52d099b (diff)
downloadbugseverywhere-9058fb2685f8b9b001908829d7edcbad2b7e58dd.tar.gz
"X or ''|e" -> "(X or '')|e" for proper escaping.
-rw-r--r--libbe/command/html.py14
1 files changed, 7 insertions, 7 deletions
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 {
<td class="status"><a href="bugs/{{ dir }}/index.html">{{ bug.status|e }}</a></td>
<td class="severity"><a href="bugs/{{ dir }}/index.html">{{ bug.severity|e }}</a></td>
<td class="summary"><a href="bugs/{{ dir }}/index.html">{{ bug.summary|e }}</a></td>
- <td class="date"><a href="bugs/{{ dir }}/index.html">{{ bug.time_string or ''|e }}</a></td>
+ <td class="date"><a href="bugs/{{ dir }}/index.html">{{ (bug.time_string or '')|e }}</a></td>
</tr>
""",
##
@@ -765,13 +765,13 @@ div.root.comment {
<tr><td class="bug_detail_label">Severity :</td>
<td class="bug_detail">{{ bug.severity|e }}</td></tr>
<tr><td class="bug_detail_label">Assigned :</td>
- <td class="bug_detail">{{ bug.assigned or ''|e }}</td></tr>
+ <td class="bug_detail">{{ (bug.assigned or '')|e }}</td></tr>
<tr><td class="bug_detail_label">Reporter :</td>
- <td class="bug_detail">{{ bug.reporter or ''|e }}</td></tr>
+ <td class="bug_detail">{{ (bug.reporter or '')|e }}</td></tr>
<tr><td class="bug_detail_label">Creator :</td>
- <td class="bug_detail">{{ bug.creator or ''|e }}</td></tr>
+ <td class="bug_detail">{{ (bug.creator or '')|e }}</td></tr>
<tr><td class="bug_detail_label">Created :</td>
- <td class="bug_detail">{{ bug.time_string or ''|e }}</td></tr>
+ <td class="bug_detail">{{ (bug.time_string or '')|e }}</td></tr>
<tr><td class="bug_detail_label">Summary :</td>
<td class="bug_detail">{{ bug.summary|e }}</td></tr>
</tbody>
@@ -815,8 +815,8 @@ div.root.comment {
--------- Comment ---------<br/>
ID: {{ comment.uuid }}<br/>
Short name: {{ comment.id.user() }}<br/>
- From: {{ comment.author or ''|e }}<br/>
- Date: {{ comment.date or ''|e }}<br/>
+ From: {{ (comment.author or '')|e }}<br/>
+ Date: {{ (comment.date or '')|e }}<br/>
<br/>
{{ format_body(bug, comment) }}
</td>