Commit d465e4ac authored by Andreas Jung's avatar Andreas Jung

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

  through exceptions
parent 99849d79
......@@ -27,6 +27,9 @@ Zope Changes
Bugs fixed
- Launchpad ##332168: Connection.py: do not expose DB connection strings
through exceptions
- LP/#143873: Fixed problems when no HTTP_ACCEPT_CHARSET is in the
request. This required an update of zope.publisher to 3.3.3.
......
......@@ -191,9 +191,9 @@ class Connection(
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()
......
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