From 646fe095d035755ffc11e8ec0d7d882b2f3a248d Mon Sep 17 00:00:00 2001 From: srosse <none@none> Date: Wed, 16 Apr 2014 09:23:15 +0200 Subject: [PATCH] OO-1070: remove escaping in input fields of the metadata form --- .../bc/meta/MetaInfoFormController.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java b/src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java index c72f370a145..f26c5977d82 100644 --- a/src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java +++ b/src/main/java/org/olat/core/commons/modules/bc/meta/MetaInfoFormController.java @@ -197,27 +197,27 @@ public class MetaInfoFormController extends FormBasicController { MetaInfo meta = item == null ? null : metaInfoFactory.createMetaInfoFor((OlatRelPathImpl)item); // title - String titleVal = StringHelper.escapeHtml(meta != null ? meta.getTitle() : null); + String titleVal = (meta != null ? meta.getTitle() : null); title = uifactory.addTextElement("title", "mf.title", -1, titleVal, formLayout); // comment/description - String commentVal = StringHelper.xssScan(meta != null ? meta.getComment() : null); + String commentVal = (meta != null ? meta.getComment() : null); comment = uifactory.addTextAreaElement("comment", "mf.comment", -1, 3, 1, true, commentVal, formLayout); // creator - String creatorVal = StringHelper.escapeHtml(meta != null ? meta.getCreator() : null); + String creatorVal = (meta != null ? meta.getCreator() : null); creator = uifactory.addTextElement("creator", "mf.creator", -1, creatorVal, formLayout); // publisher - String publisherVal = StringHelper.escapeHtml(meta != null ? meta.getPublisher() : null); + String publisherVal = (meta != null ? meta.getPublisher() : null); publisher = uifactory.addTextElement("publisher", "mf.publisher", -1, publisherVal, formLayout); // source/origin - String sourceVal = StringHelper.escapeHtml(meta != null ? meta.getSource() : null); + String sourceVal = (meta != null ? meta.getSource() : null); source = uifactory.addTextElement("source", "mf.source", -1, sourceVal, formLayout); // city - String cityVal = StringHelper.escapeHtml(meta != null ? meta.getCity() : null); + String cityVal = (meta != null ? meta.getCity() : null); city = uifactory.addTextElement("city", "mf.city", -1, cityVal, formLayout); // publish date @@ -235,15 +235,15 @@ public class MetaInfoFormController extends FormBasicController { publicationYear.setDisplaySize(4); // number of pages - String pageVal = StringHelper.escapeHtml(meta != null ? meta.getPages() : null); + String pageVal = (meta != null ? meta.getPages() : null); pages = uifactory.addTextElement("pages", "mf.pages", -1, pageVal, formLayout); // language - String langVal = StringHelper.escapeHtml(meta != null ? meta.getLanguage() : null); + String langVal = (meta != null ? meta.getLanguage() : null); language = uifactory.addTextElement("language", "mf.language", -1, langVal, formLayout); // url/link - String urlVal = StringHelper.escapeHtml(meta != null ? meta.getUrl() : null); + String urlVal = (meta != null ? meta.getUrl() : null); url = uifactory.addTextElement("url", "mf.url", -1, urlVal, formLayout); /* static fields */ -- GitLab