r5472 - trunk/wooly/python/wooly

tmckay at fedoraproject.org tmckay at fedoraproject.org
Wed Sep 26 11:45:29 UTC 2012


Author: tmckay
Date: 2012-09-26 11:45:28 +0000 (Wed, 26 Sep 2012)
New Revision: 5472

Modified:
   trunk/wooly/python/wooly/__init__.py
Log:
Escape text in error trace display
BZ840133


Modified: trunk/wooly/python/wooly/__init__.py
===================================================================
--- trunk/wooly/python/wooly/__init__.py	2012-09-26 11:43:19 UTC (rev 5471)
+++ trunk/wooly/python/wooly/__init__.py	2012-09-26 11:45:28 UTC (rev 5472)
@@ -600,7 +600,7 @@
             self.print_url_vars(env["QUERY_STRING"], writer)
             self.print_environment(env, writer)
 
-        return "<pre><![CDATA[%s]]></pre>" % writer.to_string()
+        return "<pre>%s</pre>" % xml_escape(writer.to_string())
 
     def print_messages(self, writer):
         writer.write("Messages:\n\n")



More information about the cumin-developers mailing list