Comment 3 for bug 794490

Revision history for this message
Hugh Davenport (hugh-davenport) wrote :

Hi Michael,

Thanks for reporting this bug. Someone will look into this soon.

For whoever looks into it:
There are a few things:
-The function
get_relative_script_path() (htdocs/lib/web.php:2434 (on master))
uses substr against get_script_path but giving the length of
get_mahara_install_subdirectory(), need to work out which one is needed

-The function
get_mahara_install_subdirectory (htdocs/lib/mahara.php:1993 (master))
uses strpos($wwwroot, '/'). This will return -1 if the wwwroot is
something like
https://localhost (ie. no trailing /)
This case should get picked up, because init.php adds a '/' at end if
there isn't one.

Cheers,

Hugh