]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/HttpUtils.php
Fix startsWith and endsWith case
[github/shaarli/Shaarli.git] / application / HttpUtils.php
index c84ba6f05746d404b195607715556a67ccce8eba..2e0792f97a5d2fdbfdf2b8978e2012300f519e54 100644 (file)
@@ -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;