Commit b4f84a2d authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Avoid double escaping of image metadata

image model get_meta already takes care of escaping the meta value
parent 2d250381
......@@ -359,7 +359,7 @@
update_image_details: function(image) {
this.image_details_desc.hide().parent().hide();
if (image.get_description()) {
this.image_details_desc.text(image.get_description(true)).show().parent().show();
this.image_details_desc.html(image.get_description(false)).show().parent().show();
}
var img = snf.ui.helpers.os_icon_tag(image.escape("OS"))
if (image.get("name")) {
......@@ -404,7 +404,7 @@
}
var row_cls = key.toLowerCase();
if (is_extra) { row_cls += " extra-meta" };
extra_details.append(detail_tpl.format(_.escape(label), _.escape(value), row_cls));
extra_details.append(detail_tpl.format(_.escape(label), value, row_cls));
}
_.each(meta_keys, function(key) {
......@@ -464,7 +464,7 @@
img.id,
snf.ui.helpers.os_icon_tag(img.escape("OS")),
_.escape(img.get_readable_size()),
util.truncate(img.get_description(), 35),
util.truncate(img.get_description(false), 35),
_.escape(img.display_owner())));
image.data("image", img);
image.data("image_id", img.id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment