You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ch...@apache.org on 2012/07/28 05:41:21 UTC

[11/13] git commit: rbd: Small JavaScript fix

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 <wi...@widodh.nl>
Authored: Fri Jul 27 08:44:17 2012 +0200
Committer: chip.childers@gmail.com <ch...@gmail.com>
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;