Updated Branches:
  refs/heads/master 6d15ba85d -> fe5595e9a

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/fe5595e9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/fe5595e9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/fe5595e9

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

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


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/fe5595e9/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