Commit aa461852 authored by Andreas Jung's avatar Andreas Jung

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

  through exceptions
parent dace1410
...@@ -27,6 +27,9 @@ Zope Changes ...@@ -27,6 +27,9 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Launchpad ##332168: Connection.py: do not expose DB connection strings
through exceptions
- LP/#324876: tighened regex for detecting the charset - LP/#324876: tighened regex for detecting the charset
from a meta-equiv header from a meta-equiv header
......
...@@ -190,9 +190,9 @@ class Connection( ...@@ -190,9 +190,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