From 9f739f5e87637f24945bb5aa74fa69950ed5b72a Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Tue, 12 May 2009 16:17:15 +0000 Subject: [PATCH] disable '%' expansion on username and password --- osc/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/conf.py b/osc/conf.py index 74704645..27509d82 100644 --- a/osc/conf.py +++ b/osc/conf.py @@ -425,8 +425,8 @@ def get_config(override_conffile = None, if user is None: #FIXME: this could actually be the ideal spot to take defaults #from the general section. - user = cp.get(url, 'user') - password = cp.get(url, 'pass') + user = cp.get(url, 'user', raw=True) # need to set raw to prevent '%' expansion + password = cp.get(url, 'pass', raw=True) # especially on password! if cp.has_option(url, 'keyring') and cp.get(url, 'keyring'): # This APIURL was configured to use keyring by continue