Skip to content

Commit

Permalink
MNET: Properly remove trailing slash from wwwroot: MDL-9157
Browse files Browse the repository at this point in the history
  • Loading branch information
donal72 committed Apr 2, 2007
1 parent b388c76 commit b2d3890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mnet/peer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit b2d3890

Please sign in to comment.