aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/HttpUtils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-05-10 23:31:41 +0200
committerArthurHoaro <arthur@hoa.ro>2016-05-10 23:31:41 +0200
commit5046bcb6ab324a6b52669b2b76a41665022f653a (patch)
tree84a2c144ef7d9eb0a585d2c8e1bfe63311f979a3 /application/HttpUtils.php
parentd95533778d86bb6c6de3b14a9da35e6d6e6428bd (diff)
downloadShaarli-5046bcb6ab324a6b52669b2b76a41665022f653a.tar.gz
Shaarli-5046bcb6ab324a6b52669b2b76a41665022f653a.tar.zst
Shaarli-5046bcb6ab324a6b52669b2b76a41665022f653a.zip
Fix startsWith and endsWith case
Diffstat (limited to 'application/HttpUtils.php')
-rw-r--r--application/HttpUtils.php2
1 files changed, 1 insertions, 1 deletions
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)
193function index_url($server) 193function index_url($server)
194{ 194{
195 $scriptname = $server['SCRIPT_NAME']; 195 $scriptname = $server['SCRIPT_NAME'];
196 if (endswith($scriptname, 'index.php')) { 196 if (endsWith($scriptname, 'index.php')) {
197 $scriptname = substr($scriptname, 0, -9); 197 $scriptname = substr($scriptname, 0, -9);
198 } 198 }
199 return server_url($server) . $scriptname; 199 return server_url($server) . $scriptname;