Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base64 userdata encoding fix #3260

Merged
merged 1 commit into from May 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/index.html
Expand Up @@ -557,7 +557,7 @@ <h3><translate key="label.select.iso.or.template" /></h3>
<span><translate key="label.add.userdata"/> (<translate key="label.optional"/>)</span>
</div>
<div class="value">
<textarea name="userdata" class="disallowSpecialCharacters"></textarea>
<textarea name="userdata"></textarea>
</div>
</div>
</div>
Expand Down
3 changes: 2 additions & 1 deletion ui/scripts/instanceWizard.js
Expand Up @@ -1094,8 +1094,9 @@

var userdata = args.data.userdata;
if (userdata != null && userdata.length > 0) {

$.extend(deployVmData, {
userdata : encodeURIComponent(btoa(userdata))
userdata : encodeURIComponent(btoa(cloudStack.sanitizeReverse(userdata)))
});
}

Expand Down