B #5120: Fix decode64 in user input (#290)

This commit is contained in:
Sergio Betanzos authored and GitHub committed 2020-10-06 17:17:41 +02:00
1 parent a2a307247d
commit d17393f100
1 file changed
+1 -1
+1 -1
View File
@@ -840,7 +840,7 @@ define(function(require) {
switch (attr.type) {
case "text64":
try {
input = "<textarea type='text' rows='1' wizard_field_64='true' "+wizard_field+" "+required+">"+TemplateUtils.htmlEncode(atob(value))+"</textarea>";
input = "<textarea type='text' rows='1' wizard_field_64='true' "+wizard_field+" "+required+">"+TemplateUtils.htmlEncode(btoa(value))+"</textarea>";
} catch(e){
console.error(e.message);
input = "<p>"+e.message+"</p>";