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

Convert http embedded content to https on https sites where available

    Details

    • Testing Instructions:
      Hide
      1. Administration > Site administration > Plugins > Manage Filters. Turn "Convert embedded content to match current HTTP security" to 'on'
      2. Change the site's wwwroot in config.php to https:
      3. Create a new course
      4. Include an image from an external site to it's description. Ensure that the site supports both http and https. Ensure that the url typed in is http.
      5. View the course list
      6. Check that the image is displayed
      7. Check that the https address is loaded. (Use open image in new tab or similar)
      Show
      Administration > Site administration > Plugins > Manage Filters. Turn "Convert embedded content to match current HTTP security" to 'on' Change the site's wwwroot in config.php to https: Create a new course Include an image from an external site to it's description. Ensure that the site supports both http and https. Ensure that the url typed in is http. View the course list Check that the image is displayed Check that the https address is loaded. (Use open image in new tab or similar)
    • Affected Branches:
      MOODLE_28_STABLE
    • Story Points (Obsolete):
      100

      Description

      This could be a once off thing (e.g. when someone changes from http to https and back) or a constant thing (whenever they add a link)

      Note that apache server can be configured to choose http or https automatically, and other servers may have similar functionality.

      The protocol relative url option can be considered as well. "//www.example.com" will link to https://www.example.com if you are on https://moodle.org or http://www.example.com if you are on http://moodle.org

      Finally, a filter could be made.

      Filter attempt: https://github.com/xow/moodle/compare/c84f1c6093e5bf6ef42de76ff617269b7905935c...MDL-46269-master

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  11 Vote for this issue
                  Watchers:
                  20 Start watching this issue

                  Dates

                  • Created:
                    Updated: