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

Add an as_local_url() method to moodle_url

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.1
    • 2.3
    • Libraries

    Description

      This function will return a relative path to $CFG->wwwroot for passing around as PARAM_LOCAL_URL without triggering statefull firewalls worrying about full HTTP paths and also enforces safe passing as LOCAL_URL's

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              poltawski Dan Poltawski
              Tim Hunt Tim Hunt
              Sam Hemelryk Sam Hemelryk
              Ankit Agarwal Ankit Agarwal
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Raquel Ortega, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                25/Jun/12