From: donal72 Date: Mon, 2 Apr 2007 01:45:33 +0000 (+0000) Subject: MNET: Properly remove trailing slash from wwwroot: MDL-9157 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b2d38907a4188b4a7cc40e560c816237ab55c8b8;p=moodle.git MNET: Properly remove trailing slash from wwwroot: MDL-9157 --- diff --git a/mnet/peer.php b/mnet/peer.php index 2e1c64cc50..3058116e89 100644 --- a/mnet/peer.php +++ b/mnet/peer.php @@ -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); }