mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-23 05:41:02 +01:00
only allow caching, if login succeeds, otherwise we get a cached redirect to login
This commit is contained in:
parent
bf376292f5
commit
486303cde5
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user