mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-09 18:23:18 +02:00
(cp 8573e35) include/functions_cookie: use proper brackets for offset access
Fixes #1134
This commit is contained in:
@@ -54,7 +54,7 @@ function cookie_path()
|
||||
$scr = substr($scr,0,strrpos( $scr,'/'));
|
||||
|
||||
// add a trailing '/' if needed
|
||||
if ((strlen($scr) == 0) or ($scr{strlen($scr)-1} !== '/'))
|
||||
if ((strlen($scr) == 0) or ($scr[strlen($scr)-1] !== '/'))
|
||||
{
|
||||
$scr .= '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user