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 @@ -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-requ...@mirrorbrain.org