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

wwwroot is not being trimmed of its trailing slash correctly.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.1
    • Fix Version/s: None
    • Component/s: MNet
    • Labels:
      None
    • Environment:
      All
    • Database:
      Any
    • Affected Branches:
      MOODLE_18_STABLE

      Description

      The bootstrap method of the mnet_peer object should check for and remove any trailing slash from the wwwroot config variable, but the substr call was faulty, causing trailing slashes to be ignored.

      This fix may break networking functionality for people who already have it configured. In this case they should edit the wwwroot field in their mnet_host table to remove the trailing slash.

        Gliffy Diagrams

          Activity

          Hide
          donal@catalyst.net.nz Donal McMullan added a comment -

          This is fixed with a commit I made today, but note the caveat above. The fix may break networking for some users!

          Show
          donal@catalyst.net.nz Donal McMullan added a comment - This is fixed with a commit I made today, but note the caveat above. The fix may break networking for some users!

            People

            • Assignee:
              donal@catalyst.net.nz Donal McMullan
              Reporter:
              donal@catalyst.net.nz Donal McMullan
              Tester:
              Nobody
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: