mirror of https://github.com/apache/cloudstack.git
ui: Fixed double slash in secret breaking db insert (#4392)
This commit is contained in:
parent
51034be270
commit
2ad60d0c5f
|
|
@ -1824,8 +1824,7 @@ var processPropertiesInImagestoreObject = function(jsonObj) {
|
|||
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 = secret.replace("+", "-");
|
||||
secret = secret.replace("/", "_");
|
||||
secret = secret.replace(/\+/g, '-').replace(/\//g, '_').replace(/\=+$/, '');
|
||||
|
||||
if (id != null && secret != null) {
|
||||
monitor = id + ":" + secret + "@" + monitor;
|
||||
|
|
|
|||
Loading…
Reference in New Issue