(cp 8573e35) include/functions_cookie: use proper brackets for offset access

Fixes #1134
This commit is contained in:
plegall
2019-12-04 10:42:07 +01:00
parent 20ace0e2c8
commit 0d9bc4da7d
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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 .= '/';
}