diff options
| author | 2014-08-12 21:04:39 +0200 | |
|---|---|---|
| committer | 2014-08-12 21:04:39 +0200 | |
| commit | ed7d8aa44fe5a005380056b7d164fc53079506fb (patch) | |
| tree | d9223d8cd639c59d13bb06f690bca9ab411c29b1 /lib/Minz/Session.php | |
| parent | 1b20f6bd025a08a7a741b2751d837f736758eb2d (diff) | |
Use REQUEST_URI instead of SCRIPT_NAME for cookies
See https://github.com/marienfressinaud/FreshRSS/commit/eceb7756cfcf117c2a18984291181a84697ed3cd#commitcomment-7345438
Diffstat (limited to 'lib/Minz/Session.php')
| -rw-r--r-- | lib/Minz/Session.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index c859be2ed..efc8332e5 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -78,7 +78,7 @@ class Minz_Session { */ public static function keepCookie($l) { $cookie_dir = dirname( - empty($_SERVER['SCRIPT_NAME']) ? '' : $_SERVER['SCRIPT_NAME'] + empty($_SERVER['REQUEST_URI']) ? '' : $_SERVER['REQUEST_URI'] ) . '/'; session_set_cookie_params($l, $cookie_dir, $_SERVER['HTTP_HOST'], false, true); |
