We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd7e60c commit f11ed41Copy full SHA for f11ed41
1 file changed
lib/vault/api/auth.rb
@@ -208,7 +208,7 @@ def tls(pem = nil, path = 'cert')
208
new_client = client.dup
209
new_client.ssl_pem_contents = pem if !pem.nil?
210
211
- json = new_client.post("/v1/auth/#{path}/login")
+ json = new_client.post("/v1/auth/#{CGI.escape(path)}/login")
212
secret = Secret.decode(json)
213
client.token = secret.auth.client_token
214
return secret
0 commit comments