[Zope-Checkins] SVN: Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py Collector #1322: better debugging: html-quoting sql string

Andreas Jung andreas at andreas-jung.com
Sun May 16 11:18:47 EDT 2004


Log message for revision 24751:
Collector #1322: better debugging: html-quoting sql string



-=-
Modified: Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py
===================================================================
--- Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py	2004-05-16 14:39:09 UTC (rev 24750)
+++ Zope/trunk/lib/python/Shared/DC/ZRDB/DA.py	2004-05-16 15:18:47 UTC (rev 24751)
@@ -24,6 +24,7 @@
 import sys, Globals, OFS.SimpleItem, AccessControl.Role
 from string import atoi, find, join, split, rstrip
 import DocumentTemplate, sqlvar, sqltest, sqlgroup
+from DocumentTemplate.html_quote import html_quote
 from time import time
 from zlib import compress, decompress
 from DateTime.DateTime import DateTime
@@ -331,7 +332,7 @@
                 '<dtml-var manage_tabs>\n<hr>\n%s\n\n'
                 '<hr><strong>SQL used:</strong><br>\n<pre>\n%s\n</pre>\n<hr>\n'
                 '</body></html>'
-                % (r,src))
+                % (r,html_quote(src)))
 
             report=apply(report,(self,REQUEST),{self.id:result})
 




More information about the Zope-Checkins mailing list