diff options
author | Andrew Dolgov <[email protected]> | 2023-10-23 23:10:17 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-23 23:10:17 +0300 |
commit | 9826d2f07527e3259957628030adc87bde391b0c (patch) | |
tree | 355fc07645a15cdf5056724be108363961ce36bc /api/index.php | |
parent | e956632c5ca8f87fbfe8cb365a503af53673e91e (diff) |
add a self url path hack to strip request path directories (needed for /api/index.php)
Diffstat (limited to 'api/index.php')
-rw-r--r-- | api/index.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api/index.php b/api/index.php index 750a95721..329e03dae 100644 --- a/api/index.php +++ b/api/index.php @@ -14,6 +14,8 @@ require_once "functions.php"; require_once "sessions.php"; + Config::strip_self_url_path_dirs(1); + ini_set('session.use_cookies', "0"); ini_set("session.gc_maxlifetime", "86400"); |