Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
URI encode credential name (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebaldock authored Jul 21, 2017
1 parent ce8af59 commit 96f011c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/addons/attach.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function * run (context, heroku) {
}

if (context.flags.credential && context.flags.credential !== 'default') {
let credentialConfig = yield heroku.get(`/addons/${addon.name}/config/credential:${context.flags.credential}`)
let credentialConfig = yield heroku.get(`/addons/${addon.name}/config/credential:${encodeURIComponent(context.flags.credential)}`)
if (credentialConfig.length === 0) {
throw new Error(`Could not find credential ${context.flags.credential} for database ${addon.name}`)
}
Expand Down

0 comments on commit 96f011c

Please sign in to comment.