From 486303cde5ed2c4a623f59fc381c21021b5b23f4 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 10 Feb 2014 09:15:29 +0000 Subject: [PATCH] only allow caching, if login succeeds, otherwise we get a cached redirect to login --- phpgwapi/inc/jscalendar-setup.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/jscalendar-setup.php b/phpgwapi/inc/jscalendar-setup.php index 1f5958f0b6..127ca16943 100644 --- a/phpgwapi/inc/jscalendar-setup.php +++ b/phpgwapi/inc/jscalendar-setup.php @@ -18,7 +18,6 @@ $GLOBALS['egw_info'] = array( 'noappheader' => True, 'noappfooter' => True, 'nofooter' => True, - 'nocachecontrol' => True // allow cacheing ) ); try { @@ -27,6 +26,8 @@ try { catch (egw_exception_no_permission_app $e) { // ignore exception, if home is not allowed, eg. for sitemgr } +// only allow caching, if login succeeds, otherwise we get a cached redirect to login ;-) +egw_session::cache_control(true); header('Content-type: text/javascript; charset='.translation::charset()); translation::add_app('jscalendar');