From d190005e1be8b68eccdc91a29374a6bb6f459e2b Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 3 Dec 2011 23:29:38 +0100 Subject: Trim whitespace from password read from dbpassword.txt. --- src/mulk/benki/db.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mulk/benki/db.clj b/src/mulk/benki/db.clj index d2349e9..c1f5cc6 100644 --- a/src/mulk/benki/db.clj +++ b/src/mulk/benki/db.clj @@ -9,7 +9,7 @@ :subprotocol "postgresql" :subname "//localhost:5432/benki" :user "benki" - :password (slurp "dbpassword.txt")}) + :password (clojure.string/trim (slurp "dbpassword.txt"))}) (defn call-with-db [thunk] (sql/with-connection db -- cgit v1.2.3