mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-21 23:07:25 -04:00
Merge remote-tracking branch 'origin/MinzSessionCookie' into dev
This commit is contained in:
@@ -66,7 +66,10 @@ class Minz_Session {
|
||||
*/
|
||||
public static function keepCookie($l) {
|
||||
// Get the script_name (e.g. /p/i/index.php) and keep only the path.
|
||||
$cookie_dir = dirname(empty($_SERVER['REQUEST_URI']) ? '/' : dirname($_SERVER['REQUEST_URI']));
|
||||
$cookie_dir = empty($_SERVER['REQUEST_URI']) ? '/' : $_SERVER['REQUEST_URI'];
|
||||
if (substr($cookie_dir, -1) !== '/') {
|
||||
$cookie_dir = dirname($cookie_dir) . '/';
|
||||
}
|
||||
session_set_cookie_params($l, $cookie_dir, '', false, false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user