[Trac-tickets] [The Trac Project] #2448: [patch] Trac does not
allow spaces in postgres database passwords
The Trac Project
noreply at edgewall.com
Mon Dec 5 22:24:05 CST 2005
#2448: [patch] Trac does not allow spaces in postgres database passwords
--------------------------------+-------------------------------------------
Reporter: jacob at jacobian.org | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: devel
Severity: normal | Keywords:
--------------------------------+-------------------------------------------
Trac currently doesn't allow spaces in postgres database passwords; the
following patch (against r2616) fixes it:
{{{
Index: trac/db/postgres_backend.py
===================================================================
--- trac/db/postgres_backend.py (revision 2616)
+++ trac/db/postgres_backend.py (working copy)
@@ -91,7 +91,7 @@
if user:
dsn.append('user=' + user)
if password:
- dsn.append('password=' + password)
+ dsn.append("password='%s'" % password)
if host:
dsn.append('host=' + host)
if port:
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2448>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list