Skip to content

Commit f11ed41

Browse files
Eric Jacobssethvargo
authored andcommitted
Escape path parameter to Authentication#tls
1 parent bd7e60c commit f11ed41

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/vault/api/auth.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def tls(pem = nil, path = 'cert')
208208
new_client = client.dup
209209
new_client.ssl_pem_contents = pem if !pem.nil?
210210

211-
json = new_client.post("/v1/auth/#{path}/login")
211+
json = new_client.post("/v1/auth/#{CGI.escape(path)}/login")
212212
secret = Secret.decode(json)
213213
client.token = secret.auth.client_token
214214
return secret

0 commit comments

Comments
 (0)