Commit b042166c authored by Andreas Jung's avatar Andreas Jung

- Launchpad ##332168: Connection.py: do not expose DB connection strings

  through exceptions
parent 820ca622
...@@ -8,6 +8,9 @@ Zope Changes ...@@ -8,6 +8,9 @@ Zope Changes
Bugs fixed Bugs fixed
- Launchpad ##332168: Connection.py: do not expose DB connection strings
through exceptions
Zope 2.9.10 (2008/10/24) Zope 2.9.10 (2008/10/24)
Bugs fixed Bugs fixed
......
...@@ -180,9 +180,9 @@ class Connection( ...@@ -180,9 +180,9 @@ class Connection(
except: except:
t, v, tb = sys.exc_info() t, v, tb = sys.exc_info()
raise BadRequest, ( 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' '<!--\n%s\n%s\n-->\n'
% (s,t,v)), tb % (t,v)), tb
finally: tb=None finally: tb=None
self._v_connected=DateTime() self._v_connected=DateTime()
......
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