Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Ensure apply block in template returns utf8 #606

Merged
merged 1 commit into from

2 participants

Dmitri Cherniak Ben Darnell
Dmitri Cherniak

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

Ben Darnell bdarnell merged commit 5339614 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 4, 2012
  1. Dmitri Cherniak
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  tornado/template.py
2  tornado/template.py
View
@@ -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.