Commit 87244ccc authored by Guido van Rossum's avatar Guido van Rossum

Properly escape text before writing it.

parent 3ddfe2e7
...@@ -157,6 +157,7 @@ class TALInterpreter: ...@@ -157,6 +157,7 @@ class TALInterpreter:
text = self.engine.evaluateText(expr) text = self.engine.evaluateText(expr)
if text is None: if text is None:
return return
text = cgi.escape(text)
self.stream.write(text) self.stream.write(text)
def do_insertStructure(self, expr): def do_insertStructure(self, expr):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment