rbd: Small JavaScript fix

This commit is contained in:
Wido den Hollander 2012-07-27 08:44:17 +02:00
parent 6d15ba85d3
commit fe5595e9ae
1 changed files with 2 additions and 2 deletions

View File

@ -482,8 +482,8 @@ function rbdURL(monitor, pool, id, secret) {
Replace the + and / symbols by - and _ to have URL-safe base64 going to the API
It's hacky, but otherwise we'll confuse java.net.URI which splits the incoming URI
*/
secret = str.replace("+", "-");
secret = str.replace("/", "_");
secret = secret.replace("+", "-");
secret = secret.replace("/", "_");
if (id != null && secret != null) {
monitor = id + ":" + secret + "@" + monitor;