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

Incorrect text-formatting in mod_forum_get_forum_discussion_posts and others

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.6.3, 3.7, 3.8
    • 3.7.3
    • Forum
    • MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
    • MOODLE_37_STABLE
    • MDL-65025-master
    • Hide
      Prerequisite
      1. Moodle mobile app.
      2. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following:
        • Ensure that the phone with the mobile app and the web server are on the same network. Or
        • Expose the web server over the internet via ngrok.
      Test
      1. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      2. Enable the following security setting "Enable trusted content"
      3. Create in a course a forum
      4. As admin, create a new discussion in the forum, add the following html text in the disccussion: <button>This is a button</button>
      5. Now, as a normal student, reply to that discussion with the same HTML text (please, use the Advance forum mode)
      6. You will notice that the teacher message displays the button while the student not (this is expected)
      7. Access to the site via the Mobile app, go to the forum and check that:
        • In the admin message you see the button (it won't action/click) it will display just in grey color
        • In the student message you don't see the button
      Show
      Prerequisite Moodle mobile app. Your Moodle mobile app should be able to connect to your Moodle website. You can either do the following: Ensure that the phone with the mobile app and the web server are on the same network. Or Expose the web server over the internet via ngrok. Test As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Enable the following security setting "Enable trusted content" Create in a course a forum As admin, create a new discussion in the forum, add the following html text in the disccussion: <button>This is a button</button> Now, as a normal student, reply to that discussion with the same HTML text (please, use the Advance forum mode) You will notice that the teacher message displays the button while the student not (this is expected) Access to the site via the Mobile app, go to the forum and check that: In the admin message you see the button (it won't action/click) it will display just in grey color In the student message you don't see the button

    Description

      The Web Services are cleaning more HTML than expected.

      Please, note that "Enable trusted content" must be enabled to reproduce this

      See MOBILE-2909 for more information

      Attachments

        Issue Links

          Activity

            People

              jleyva Juan Leyva
              jleyva Juan Leyva
              Pau Ferrer Pau Ferrer
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Janelle Barcega Janelle Barcega
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Nov/19

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 36 minutes
                  2h 36m