Permalink
Browse files

fixed HTML escaping stupidity

  • Loading branch information...
1 parent a461fc7 commit aaaaecff87855655fb5bb817e306b35141e6ca8c @ctb committed Apr 17, 2010
View
@@ -20,7 +20,7 @@ if not options.force_build:
sys.exit(0)
commands = [ BuildCommand(['/bin/echo', 'hello, world'], name='David'),
- TestCommand(['/bin/echo', 'this is a test'], name='Bill')
+ TestCommand(['/bin/echo', 'this is a test <> &'], name='Bill')
]
context = TempDirectoryContext()
@@ -67,13 +67,13 @@
<b>command line:</b>{{ r['command'] }}<br>
{% if r.has_key('output') and r['output'].strip() %}
- <b>stdout:</b><tt><div class='resultpre'>{{ r['output'] }}</div></tt><br>
+ <b>stdout:</b><tt><div class='resultpre'>{{ r['output']|e }}</div></tt><br>
{% else %}
<i>no stdout</i><br>
{% endif %}
{% if r['errout'].strip() %}
- <b>stderr:</b><tt><div class='resultpre'>{{ r['errout'] }}</div></tt><br>
+ <b>stderr:</b><tt><div class='resultpre'>{{ r['errout']|e }}</div></tt><br>
{% else %}
<i>no stderr</i><br>
{% endif %}
@@ -33,7 +33,7 @@
<li>Result {{ loop.index }}:<br>
<div class='resultpre'>
{% for k, v in result_d.items() -%}
- {{ k }}: {{ v }}
+ {{ k|e }}: {{ v|e }}
{% endfor -%}
</div>
</div>

0 comments on commit aaaaecf

Please sign in to comment.