mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #36220
[Bug 1599404] Re: The function "get_mahara_install_subdirectory" doesn't correctly handle a URL with a missing trailing slash
** Changed in: mahara/15.04
Status: In Progress => Fix Committed
** Changed in: mahara/15.10
Status: In Progress => Fix Committed
** Changed in: mahara/16.04
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1599404
Title:
The function "get_mahara_install_subdirectory" doesn't correctly
handle a URL with a missing trailing slash
Status in Mahara:
Fix Committed
Status in Mahara 15.04 series:
Fix Committed
Status in Mahara 15.10 series:
Fix Committed
Status in Mahara 16.04 series:
Fix Committed
Bug description:
One of the causes of Bug 1592236 was that
get_mahara_install_subdirectory() doesn't correctly handle a wwwroot
with a missing trailing slash. If you set your wwwroot to e.g.
"http://www.example.com", it will return "www.example.com".
This rarely affects anything because fairly early in init.php we
rectify $CFG->wwwroot to add the missing trailing slash if it's
missing. But if we need to call it before that point it can cause
subtle problems, so we may as well fix it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1599404/+subscriptions
References