##// END OF EJS Templates
url: limit expansion to safe auth keys (Issue2328)...
Martin Geisler -
r11838:d4bfa07f default
parent child Browse files
Show More
@@ -232,16 +232,19 b' Supported arguments:'
232 argument, q.v., is then subsequently consulted.
232 argument, q.v., is then subsequently consulted.
233 ``username``
233 ``username``
234 Optional. Username to authenticate with. If not given, and the
234 Optional. Username to authenticate with. If not given, and the
235 remote site requires basic or digest authentication, the user
235 remote site requires basic or digest authentication, the user will
236 will be prompted for it.
236 be prompted for it. Environment variables are expanded in the
237 username letting you do ``foo.username = $USER``.
237 ``password``
238 ``password``
238 Optional. Password to authenticate with. If not given, and the
239 Optional. Password to authenticate with. If not given, and the
239 remote site requires basic or digest authentication, the user
240 remote site requires basic or digest authentication, the user
240 will be prompted for it.
241 will be prompted for it.
241 ``key``
242 ``key``
242 Optional. PEM encoded client certificate key file.
243 Optional. PEM encoded client certificate key file. Environment
244 variables are expanded in the filename.
243 ``cert``
245 ``cert``
244 Optional. PEM encoded client certificate chain file.
246 Optional. PEM encoded client certificate chain file. Environment
247 variables are expanded in the filename.
245 ``schemes``
248 ``schemes``
246 Optional. Space separated list of URI schemes to use this
249 Optional. Space separated list of URI schemes to use this
247 authentication entry with. Only used if the prefix doesn't include
250 authentication entry with. Only used if the prefix doesn't include
@@ -156,7 +156,8 b' class passwordmgr(urllib2.HTTPPasswordMg'
156 continue
156 continue
157 group, setting = key.split('.', 1)
157 group, setting = key.split('.', 1)
158 gdict = config.setdefault(group, dict())
158 gdict = config.setdefault(group, dict())
159 val = util.expandpath(val)
159 if setting in ('username', 'cert', 'key'):
160 val = util.expandpath(val)
160 gdict[setting] = val
161 gdict[setting] = val
161
162
162 # Find the best match
163 # Find the best match
General Comments 0
You need to be logged in to leave comments. Login now