From b2d38907a4188b4a7cc40e560c816237ab55c8b8 Mon Sep 17 00:00:00 2001 From: donal72 Date: Mon, 2 Apr 2007 01:45:33 +0000 Subject: [PATCH] MNET: Properly remove trailing slash from wwwroot: MDL-9157 --- mnet/peer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5