Skip to content

Commit 7614004

Browse files
Fix RPC calls from AWS client side
Bug was introduced recently with a slightly wrong adaptation of the JS code to ES5 standards.
1 parent 340cd02 commit 7614004

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cms/server/admin/static/aws_utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ CMS.AWSUtils = function(url_root, timestamp,
5353
CMS.AWSUtils.create_url_builder = function(url_root) {
5454
return function() {
5555
var url = url_root;
56-
for (var component in arguments) {
56+
for (var i = 0; i < arguments.length; ++i) {
5757
if (url.substr(-1) != "/") {
5858
url += "/";
5959
}
60-
url += encodeURIComponent(component);
60+
url += encodeURIComponent(arguments[i]);
6161
}
6262
return url;
6363
};

0 commit comments

Comments
 (0)