commit 8ce85916a572cb1feddbdef1f887bafb70312b82
parent 4b5420fbc5cbca1e82099ac2123e5591f4dfc573
Author: Jan Dankert <develop@jandankert.de>
Date: Thu, 24 Oct 2019 21:29:55 +0200
Fix: Keep trailing Slash for Cookie path.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/index.php b/api/index.php
@@ -7,7 +7,7 @@ use cms_api\API;
try {
// Cookie-Path: Actual path without '/api'.
- define('COOKIE_PATH',substr(dirname($_SERVER['SCRIPT_NAME']),0,-4));
+ define('COOKIE_PATH',substr(dirname($_SERVER['SCRIPT_NAME']),0,-3));
API::execute();