From: Tomas K. <to...@us...> - 2006-07-09 18:43:44
|
Update of /cvsroot/squirrelmail/squirrelmail/include In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv8351 Modified Files: init.php Log Message: turn on session cookies, if they are turned off. Index: init.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/include/init.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -w -r1.10 -r1.11 --- init.php 22 May 2006 17:43:43 -0000 1.10 +++ init.php 9 Jul 2006 18:43:40 -0000 1.11 @@ -58,6 +58,17 @@ } } +/** + * [#1518885] session.use_cookies = off breaks SquirrelMail + * + * When session cookies are not used, all http redirects, meta refreshes, + * src/download.php and javascript URLs are broken. Setting must be set + * before session is started. + */ +if (!(bool)ini_get('session.use_cookies') || + ini_get('session.use_cookies') == 'off') { + ini_set('session.use_cookies','1'); +} /** * calculate SM_PATH and calculate the base_uri |