[mirrorbrain-commits] r8345 - /trunk/mb/mb/conn.py

From: <poeml_at_mirrorbrain.org>
Date: Wed, 29 Jan 2014 22:50:30 -0000
Author: poeml
Date: Wed Jan 29 23:50:30 2014
New Revision: 8345

URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain?rev=8345&view=rev
Log:
mb/mirrorbrain.conf: 
- Trailing spaces in passwords were taken literally, but were very hard to see
  and hard to debug. Now, trailing spaces in passwords are ignored. (issue #112)
  Thanks to patch from Pat Riehecky!

Modified:
    trunk/mb/mb/conn.py

Modified: trunk/mb/mb/conn.py
URL: http://svn.mirrorbrain.org/viewvc/mirrorbrain/trunk/mb/mb/conn.py?rev=8345&r1=8344&r2=8345&view=diff
==============================================================================
--- trunk/mb/mb/conn.py	(original)
+++ trunk/mb/mb/conn.py	Wed Jan 29 23:50:30 2014
_at_@ -122,6 +122,7 @@
             except:
                 sys.exit("Your config doesn't have a 'dbname' setting.")
 
+            config['dbpass'] = config['dbpass'].rstrip()
             config['dbpass'] = config['dbpass'].replace(' ', r'\ ')
             config['dbpass'] = config['dbpass'].replace('\t', '\\\t')
             config['dbpass'] = config['dbpass'].replace("'", r"\'")




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Jan 29 2014 - 22:50:34 GMT

This archive was generated by hypermail 2.3.0 : Wed Jan 29 2014 - 23:17:04 GMT