Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-15600

Ban reasons are not escaped in mcp_ban.html template

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.3, 3.2.2
    • Fix Version/s: 3.3.0-a1, 3.2.4-RC1
    • Component/s: None
    • Labels:
    • Environment:
      PHP 7.2.3, PostgreSQL 9.6, Chrome 65.0.3325.181

      Description

      Technically it is possible to store multiline ban reasons in database, however this breaks unescaped JavaScript code stored in template.

      I suggest to use TWIG e('js') function to fix this issue.

        Attachments

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              Tarzanych Tarzanych [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: