1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

B #5120: Fix text64 user input (#294)

(cherry picked from commit d252c71b950be09ca6b2117cbe86bb281b989cf0)
This commit is contained in:
Sergio Betanzos 2020-10-07 11:15:23 +02:00 committed by Tino Vazquez
parent c61454f444
commit 2159fe3479

View File

@ -841,7 +841,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(btoa(value))+"</textarea>";
input = "<textarea type='text' rows='1' wizard_field_64='true' "+wizard_field+" "+required+">"+TemplateUtils.htmlEncode(value)+"</textarea>";
} catch(e){
console.error(e.message);
input = "<p>"+e.message+"</p>";