]> git.mjollnir.org Git - moodle.git/commitdiff
MNET: Properly remove trailing slash from wwwroot: MDL-9157
authordonal72 <donal72>
Mon, 2 Apr 2007 01:45:33 +0000 (01:45 +0000)
committerdonal72 <donal72>
Mon, 2 Apr 2007 01:45:33 +0000 (01:45 +0000)
mnet/peer.php

index 2e1c64cc5058c11ab6a42187e14bf18230f32eb1..3058116e89367aaa9dbcd2b01c8356f38d15a976 100644 (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);
         }