MNET: Properly remove trailing slash from wwwroot: MDL-9157
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user