1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-11 04:58:16 +03:00

Bug #2936: Template wizard cannot save if some values have quotation marks

(cherry picked from commit df4fd64807b5d3027067c4b389bd05a379942a07)
This commit is contained in:
Jaime Melis 2014-05-23 13:11:52 +02:00 committed by Javi Fontan
parent 10acc12926
commit 1764f3457e

View File

@ -3317,6 +3317,7 @@ function setup_context_tab_content(context_section) {
$('#FILES_DS', context_section).val(req_string.join(" "));
$('#FILES_DS', context_section).val(htmlDecode(context["FILES_DS"]))
};
}
@ -4315,7 +4316,7 @@ function fillTemplatePopUp(template, dialog){
$("input#INIT_SCRIPTS").val(htmlDecode(value));
}
else if ("FILES_DS" == key){
$('#FILES_DS', context_section).val(htmlDecode(context["FILES_DS"]))
$('#FILES_DS', context_section).val(escapeDoubleQuotes(htmlDecode(context["FILES_DS"])))
var files = [];
while (match = file_ds_regexp.exec(value)) {
files.push(match[1])