Moodle

MNET jump links in forum emails have incorrect path when wwwroot contains a path

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.3, 2.0
  • Fix Version/s: 1.9.4
  • Component/s: Forum, Messages, MNet
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

If $CFG->wwwroot contains a path component (e.g. /moodle in http://contentprovider.com/moodle or similar), then the MNET jump URLs to the forum threads on the CP that get written into forum emails contain a double-up of the path - on the end of hostwwwroot and the beginning of wantsurl. For instance:

http://idprovider.com/mnet/jump.php?hostwwwroot=http://contentprovider.com/moodle&wantsurl=/moodle/mod/forum/discuss.php...

Attached fix.

  1. MDL-17548.HEAD.patch
    08/Dec/08 12:51 PM
    1.0 kB
    Jonathan Harker
  2. MDL-17548.MOODLE_19_STABLE.patch
    08/Dec/08 12:53 PM
    1.0 kB
    Jonathan Harker

Activity

Hide
Jonathan Harker added a comment -

Patch for head - PHP 5 supports the extra PHP_URL_PATH parameter.

Show
Jonathan Harker added a comment - Patch for head - PHP 5 supports the extra PHP_URL_PATH parameter.
Hide
Jonathan Harker added a comment -

Fix for MOODLE_19_STABLE has to support the PHP 4 incantation of parse_url

Show
Jonathan Harker added a comment - Fix for MOODLE_19_STABLE has to support the PHP 4 incantation of parse_url
Hide
Dan Poltawski added a comment -

(Not really looked at this - ). But presumably this fixes the wantsurl part?

Show
Dan Poltawski added a comment - (Not really looked at this - ). But presumably this fixes the wantsurl part?
Hide
Peter Bulmer added a comment -

DanP, Yep.

I've looked at it, it's a good patch IMO

Show
Peter Bulmer added a comment - DanP, Yep. I've looked at it, it's a good patch IMO
Hide
Eloy Lafuente (stronk7) added a comment -

+1 yay!

Show
Eloy Lafuente (stronk7) added a comment - +1 yay!
Hide
Jonathan Harker added a comment -

Now committed to HEAD and MOODLE_19_STABLE
Cheers again
J

Show
Jonathan Harker added a comment - Now committed to HEAD and MOODLE_19_STABLE Cheers again J
Hide
Dan Poltawski added a comment -

Closing as fixed as this has been commited

Show
Dan Poltawski added a comment - Closing as fixed as this has been commited

Dates

  • Created:
    Updated:
    Resolved: