diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-05-10 23:31:41 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-05-10 23:31:41 +0200 |
commit | 5046bcb6ab324a6b52669b2b76a41665022f653a (patch) | |
tree | 84a2c144ef7d9eb0a585d2c8e1bfe63311f979a3 /application/HttpUtils.php | |
parent | d95533778d86bb6c6de3b14a9da35e6d6e6428bd (diff) | |
download | Shaarli-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.php | 2 |
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) | |||
193 | function index_url($server) | 193 | function 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; |