X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FHttpUtils.php;fp=application%2FHttpUtils.php;h=2e0792f97a5d2fdbfdf2b8978e2012300f519e54;hb=5046bcb6ab324a6b52669b2b76a41665022f653a;hp=c84ba6f05746d404b195607715556a67ccce8eba;hpb=d95533778d86bb6c6de3b14a9da35e6d6e6428bd;p=github%2Fshaarli%2FShaarli.git diff --git a/application/HttpUtils.php b/application/HttpUtils.php index c84ba6f0..2e0792f9 100644 --- a/application/HttpUtils.php +++ b/application/HttpUtils.php @@ -193,7 +193,7 @@ function server_url($server) function index_url($server) { $scriptname = $server['SCRIPT_NAME']; - if (endswith($scriptname, 'index.php')) { + if (endsWith($scriptname, 'index.php')) { $scriptname = substr($scriptname, 0, -9); } return server_url($server) . $scriptname;