mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MNET: Properly remove trailing slash from wwwroot: MDL-9157
This commit is contained in:
parent
b388c7664d
commit
b2d38907a4
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user