Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29370

Cannot create a forum post with subject "x <> X"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.1.1
    • Forum, Libraries
    • MOODLE_21_STABLE
    • Hide

      Manually escape the < as <

      Show
      Manually escape the < as <
    • Difficult
    • Hide

      1. Try to make a forum post with subject "x <> X"
      2. Make sure that subject is displayed correctly.

      Show
      1. Try to make a forum post with subject "x <> X" 2. Make sure that subject is displayed correctly.

      We seem to be doing the wrong sort of cleaning on post titles.

      Or, are we treating the input as HTML for the benefit of multilang? Even so, surely we can make PARAM_TEXT more intelligent so that it copes with this.

      I guess the final strip_tags in
      case PARAM_TEXT: // leave only tags needed for multilang
      is the problem.

      Changing it to judicious use of htmlspecialchars would be better.

            Unassigned Unassigned
            timhunt Tim Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.