[Zope-Checkins] SVN: Zope/branches/2.9/ - Launchpad ##332168: Connection.py: do not expose DB connection strings

Andreas Jung andreas at andreas-jung.com
Sat Feb 21 10:30:15 EST 2009


Log message for revision 96952:
  - Launchpad ##332168: Connection.py: do not expose DB connection strings
    through exceptions
  

Changed:
  U   Zope/branches/2.9/doc/CHANGES.txt
  U   Zope/branches/2.9/lib/python/Shared/DC/ZRDB/Connection.py

-=-
Modified: Zope/branches/2.9/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.9/doc/CHANGES.txt	2009-02-21 15:28:09 UTC (rev 96951)
+++ Zope/branches/2.9/doc/CHANGES.txt	2009-02-21 15:30:14 UTC (rev 96952)
@@ -8,6 +8,9 @@
 
    Bugs fixed
 
+      - Launchpad ##332168: Connection.py: do not expose DB connection strings
+        through exceptions
+
   Zope 2.9.10 (2008/10/24)
 
    Bugs fixed

Modified: Zope/branches/2.9/lib/python/Shared/DC/ZRDB/Connection.py
===================================================================
--- Zope/branches/2.9/lib/python/Shared/DC/ZRDB/Connection.py	2009-02-21 15:28:09 UTC (rev 96951)
+++ Zope/branches/2.9/lib/python/Shared/DC/ZRDB/Connection.py	2009-02-21 15:30:14 UTC (rev 96952)
@@ -180,9 +180,9 @@
             except:
                 t, v, tb = sys.exc_info()
                 raise BadRequest, (
-                    '<strong>Invalid connection string: </strong><CODE>%s</CODE><br>\n'
+                    '<strong>Error connecting to DB.</strong><br>\n'
                     '<!--\n%s\n%s\n-->\n'
-                    % (s,t,v)), tb
+                    % (t,v)), tb
         finally: tb=None
         self._v_connected=DateTime()
 



More information about the Zope-Checkins mailing list