From 79d88a2d5b30aeadc71f7c98a4a860cd97e97562 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 5 Jan 2014 01:14:01 +0100 Subject: [PATCH] =?UTF-8?q?Corrige=20probl=C3=A8me=20cookie=20avec=20IE=20?= =?UTF-8?q?en=20utilisant=20un=20chemin=20absolu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Corrige https://github.com/marienfressinaud/FreshRSS/issues/345 @marienfressinaud Il faudrait peut-être le ré-écrire un peu mieux en utilisant base_url de la configuration de FreshRSS, mais je n'ai pas trop suivi comment était généré et utilisée cette variable. Qu'en dis-tu ? --- lib/Minz/Session.php | 2 +- p/i/install.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Minz/Session.php b/lib/Minz/Session.php index 37faff0fb..7823e69c2 100644 --- a/lib/Minz/Session.php +++ b/lib/Minz/Session.php @@ -18,7 +18,7 @@ class Minz_Session { public static function init ($name) { // démarre la session session_name ($name); - session_set_cookie_params (0, './', null, false, true); + session_set_cookie_params (0, dirname(empty($_SERVER['REQUEST_URI']) ? '/' : dirname($_SERVER['REQUEST_URI']), null, false, true); session_start (); if (isset ($_SESSION)) { diff --git a/p/i/install.php b/p/i/install.php index 0210133a5..85dfa3a66 100644 --- a/p/i/install.php +++ b/p/i/install.php @@ -3,7 +3,7 @@ require('../../constants.php'); include(LIB_PATH . '/lib_rss.php'); session_name('FreshRSS'); -session_set_cookie_params(0, './', null, false, true); +session_set_cookie_params(0, dirname(empty($_SERVER['REQUEST_URI']) ? '/' : dirname($_SERVER['REQUEST_URI'])), null, false, true); session_start(); if (isset ($_GET['step'])) {