rbd: Small JavaScript fix

Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/4dd2854d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/4dd2854d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/4dd2854d

Branch: refs/heads/master
Commit: 4dd2854d614a49e19f4c802a9dfa02ac96c6827b
Parents: 6d15ba8
Author: Wido den Hollander <[email protected]>
Authored: Fri Jul 27 08:44:17 2012 +0200
Committer: [email protected] <[email protected]>
Committed: Fri Jul 27 23:37:45 2012 -0400

----------------------------------------------------------------------
 ui/scripts/sharedFunctions.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/4dd2854d/ui/scripts/sharedFunctions.js
----------------------------------------------------------------------
diff --git a/ui/scripts/sharedFunctions.js b/ui/scripts/sharedFunctions.js
index c4cf58c..a81c427 100644
--- a/ui/scripts/sharedFunctions.js
+++ b/ui/scripts/sharedFunctions.js
@@ -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;

Reply via email to