Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Ensure apply block in template returns utf8 #606

Merged
merged 1 commit into from

2 participants

@dmitric

Previously it did not return utf8 which meant built in functions
such as linkify could cause problems as well

@bdarnell bdarnell merged commit 5339614 into tornadoweb:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. @dmitric
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tornado/template.py
View
2  tornado/template.py
@@ -479,7 +479,7 @@ def generate(self, writer):
writer.write_line("_append = _buffer.append", self.line)
self.body.generate(writer)
writer.write_line("return _utf8('').join(_buffer)", self.line)
- writer.write_line("_append(%s(%s()))" % (
+ writer.write_line("_append(_utf8(%s(%s())))" % (
self.method, method_name), self.line)
Something went wrong with that request. Please try again.