mirror of
https://github.com/moodle/moodle.git
synced 2025-08-02 07:39:54 +02:00
MNET: Properly remove trailing slash from wwwroot: MDL-9157
This commit is contained in:
parent
b388c7664d
commit
b2d38907a4
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue