Skip to content

Commit fe5595e

Browse files
committed
rbd: Small JavaScript fix
1 parent 6d15ba8 commit fe5595e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/scripts/sharedFunctions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ function rbdURL(monitor, pool, id, secret) {
482482
Replace the + and / symbols by - and _ to have URL-safe base64 going to the API
483483
It's hacky, but otherwise we'll confuse java.net.URI which splits the incoming URI
484484
*/
485-
secret = str.replace("+", "-");
486-
secret = str.replace("/", "_");
485+
secret = secret.replace("+", "-");
486+
secret = secret.replace("/", "_");
487487

488488
if (id != null && secret != null) {
489489
monitor = id + ":" + secret + "@" + monitor;

0 commit comments

Comments
 (0)