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.
Hi Michael,
Thanks for reporting this bug. Someone will look into this soon.
For whoever looks into it: script_ path() (htdocs/ lib/web. php:2434 (on master)) install_ subdirectory( ), need to work out which one is needed
There are a few things:
-The function
get_relative_
uses substr against get_script_path but giving the length of
get_mahara_
-The function install_ subdirectory (htdocs/ lib/mahara. php:1993 (master)) /localhost (ie. no trailing /)
get_mahara_
uses strpos($wwwroot, '/'). This will return -1 if the wwwroot is
something like
https:/
This case should get picked up, because init.php adds a '/' at end if
there isn't one.
Cheers,
Hugh