mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 23:46:13 +01:00
disable '%' expansion on username and password
This commit is contained in:
parent
7c27fac55e
commit
9f739f5e87
@ -425,8 +425,8 @@ def get_config(override_conffile = None,
|
|||||||
if user is None:
|
if user is None:
|
||||||
#FIXME: this could actually be the ideal spot to take defaults
|
#FIXME: this could actually be the ideal spot to take defaults
|
||||||
#from the general section.
|
#from the general section.
|
||||||
user = cp.get(url, 'user')
|
user = cp.get(url, 'user', raw=True) # need to set raw to prevent '%' expansion
|
||||||
password = cp.get(url, 'pass')
|
password = cp.get(url, 'pass', raw=True) # especially on password!
|
||||||
if cp.has_option(url, 'keyring') and cp.get(url, 'keyring'):
|
if cp.has_option(url, 'keyring') and cp.get(url, 'keyring'):
|
||||||
# This APIURL was configured to use keyring by
|
# This APIURL was configured to use keyring by
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user