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

CSV log report exports contain HTML code for the apostrophe in the "Description" field

XMLWordPrintable

    • MOODLE_404_STABLE
    • MOODLE_403_STABLE, MOODLE_404_STABLE
    • MDL-81781-403
    • MDL-81781-404
    • Hide
      1. Log in as admin
      2. Navigate to Plugins > Authentication > Manage authentication in site administration
      3. In the Instructions field, insert the following HTML:

        <p>New</p><hr /><p>Stuff</p>
        

      4. Press Save changes
      5. Navigate to Reports > Logs in site administration
      6. Press Get these logs
      7. Confirm the log entry Description for the config log change:

        The user with id '<ID>' changed the config setting 'auth_instructions' for component 'core' from '' to '<p>New</p>
        <hr>
        <p>Stuff</p>'
        

      8. Download file as Comma separated values (.csv)
      9. Confirm downloaded CSV file does not show encoded quote marks (')
      10. Download file as HTML table
      11. Confirm downloaded HTML file contains the following log entry for the config log change:

        The user with id '<ID>' changed the config setting 'auth_instructions' for component 'core' from '' to '<p>New</p>
        <hr>
        <p>Stuff</p>'.
        

      Show
      Log in as admin Navigate to Plugins > Authentication > Manage authentication in site administration In the Instructions field, insert the following HTML: <p>New</p><hr /><p>Stuff</p> Press Save changes Navigate to Reports > Logs in site administration Press Get these logs Confirm the log entry Description for the config log change: The user with id '<ID>' changed the config setting 'auth_instructions' for component 'core' from '' to '<p>New</p> <hr> <p>Stuff</p>' Download file as Comma separated values (.csv) Confirm downloaded CSV file does not show encoded quote marks ( ' ) Download file as HTML table Confirm downloaded HTML file contains the following log entry for the config log change: The user with id '<ID>' changed the config setting 'auth_instructions' for component 'core' from '' to '<p>New</p> <hr> <p>Stuff</p>'.

      Since the new Moodle version 4.4. the log file downloaded in CSV format, in any course, includes the characters ' instead of ' (apostrophe character) in the Description field.

      If you want to replicate the process, go to "Reports\Logs", click button "Get these logs" and then (at the end of the page), click Download (with "Comma separated values (.csv)" selected. Open the file, and check the Description column.

      Example (with Moodle 4.4): "The user with id '13' viewed the log report for the course with id '51'."

      In previous versions, you could see th t with any editor, using ' (apostrophe).

      Example (with previous versions): ""The user with id '13' viewed the log report for the course with id '51'."

            pholden Paul Holden
            rmartico Raúl Marticorena
            Carlos Escobedo Carlos Escobedo
            Huong Nguyen Huong Nguyen
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 22 minutes
                1h 22m

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