Permalink
Browse files

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

  • Loading branch information...
1 parent f02d236 commit aecd299b7a7eced7e32b9c91454f52f787077ad8 donal72 committed Apr 2, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 mnet/peer.php
View
@@ -27,7 +27,7 @@ function mnet_peer() {
function bootstrap($wwwroot, $pubkey = null) {
- if (substr($wwwroot, 0, -1) == '/') {
+ if (substr($wwwroot, -1, 1) == '/') {
$wwwroot = substr($wwwroot, 0, -1);
}

0 comments on commit aecd299

Please sign in to comment.