diff options
author | Arthur <arthur@hoa.ro> | 2016-05-14 11:09:03 +0200 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-05-14 11:09:03 +0200 |
commit | 765391cb376500a8372aedd426dd4bfbe04ee8ec (patch) | |
tree | cc9bb6efaf3207a0334d362d75a6f1d1fe297252 /application/HttpUtils.php | |
parent | 19f53aa18cfa2c78ab798153c31c6e4b23b3c4c9 (diff) | |
parent | 5046bcb6ab324a6b52669b2b76a41665022f653a (diff) | |
download | Shaarli-765391cb376500a8372aedd426dd4bfbe04ee8ec.tar.gz Shaarli-765391cb376500a8372aedd426dd4bfbe04ee8ec.tar.zst Shaarli-765391cb376500a8372aedd426dd4bfbe04ee8ec.zip |
Merge pull request #559 from ArthurHoaro/startsEndWithCase
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; |