MNET: Properly remove trailing slash from wwwroot: MDL-9157

This commit is contained in:
donal72 2007-04-02 01:45:33 +00:00
parent b388c7664d
commit b2d38907a4

View File

@ -27,7 +27,7 @@ class mnet_peer {
function bootstrap($wwwroot, $pubkey = null) {
if (substr($wwwroot, 0, -1) == '/') {
if (substr($wwwroot, -1, 1) == '/') {
$wwwroot = substr($wwwroot, 0, -1);
}