mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-25 20:31:31 +02: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,
|
'noappheader' => True,
|
||||||
'noappfooter' => True,
|
'noappfooter' => True,
|
||||||
'nofooter' => True,
|
'nofooter' => True,
|
||||||
'nocachecontrol' => True // allow cacheing
|
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
@ -27,6 +26,8 @@ try {
|
|||||||
catch (egw_exception_no_permission_app $e) {
|
catch (egw_exception_no_permission_app $e) {
|
||||||
// ignore exception, if home is not allowed, eg. for sitemgr
|
// 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());
|
header('Content-type: text/javascript; charset='.translation::charset());
|
||||||
translation::add_app('jscalendar');
|
translation::add_app('jscalendar');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user