Uploaded image for project: 'OpenOLAT'
  1. OpenOLAT
  2. OO-1043

Info messages portlet: tooltip contains escaped HTML

    XMLWordPrintable

    Details

      Description

      Since info messages are formatted with HTML, it's not advisable to escape brackets etc. when displaying the tooltip in the portlet.

      This is the patch:

      diff -r 8d9b24c8bd51 src/main/java/org/olat/commons/info/portlet/InfoMessagePortletRunController.java
      --- a/src/main/java/org/olat/commons/info/portlet/InfoMessagePortletRunController.java	Fri Feb 28 16:00:47 2014 +0100
      +++ b/src/main/java/org/olat/commons/info/portlet/InfoMessagePortletRunController.java	Wed Mar 26 16:10:22 2014 +0100
      @@ -259,7 +259,7 @@
       				if(tooltip) {
       					tipSb = new StringBuilder();
       					tipSb.append("<b>").append(title).append(":</b>").append("<br/>")
      -						.append(Formatter.escWithBR(Formatter.truncate(item.getDescriptionTooltip(), 256)));
      +						.append(Formatter.truncate(item.getDescriptionTooltip(), 256));
       					sb.append("<span id='o_sel_info_msg_title_").append(key).append("'>");
       				} else {
       					sb.append("<span>");
      

        Attachments

          Activity

            People

            Assignee:
            srosse Stéphane Rossé
            Reporter:
            stephan Stephan Clemenz
            Tester:
            Kirsten Scherer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m