[Zope3-checkins] CVS: Zope3/src/zope/exceptions - exceptionformatter.py:1.5

Guido van Rossum guido@python.org
Mon, 21 Apr 2003 16:06:14 -0400


Update of /cvs-repository/Zope3/src/zope/exceptions
In directory cvs.zope.org:/tmp/cvs-serv10920

Modified Files:
	exceptionformatter.py 
Log Message:
The "extra info" from __traceback_supplement__ wasn't properly being
escaped.  Now it is.


=== Zope3/src/zope/exceptions/exceptionformatter.py 1.4 => 1.5 ===
--- Zope3/src/zope/exceptions/exceptionformatter.py:1.4	Mon Apr 21 15:51:10 2003
+++ Zope3/src/zope/exceptions/exceptionformatter.py	Mon Apr 21 16:06:13 2003
@@ -99,7 +99,7 @@
             try:
                 extra = getInfo()
                 if extra:
-                    result.append(extra)
+                    result.append(self.escape(extra))
             except:
                 if DEBUG_EXCEPTION_FORMATTER:
                     import traceback