diff --git a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/expirecache.tpl.php b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/expirecache.tpl.php index b6961076c9..0e5d854213 100644 --- a/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/expirecache.tpl.php +++ b/lhc_web/design/defaulttheme/tpl/lhsystem/configuration_links/expirecache.tpl.php @@ -1,3 +1,3 @@ hasAccessTo('lhsystem','expirecache')) : ?> -
  • getTranslation('pagelayout/pagelayout','Clean cache');?>
  • +
  • getTranslation('pagelayout/pagelayout','Clean cache');?>
  • \ No newline at end of file diff --git a/lhc_web/modules/lhsystem/expirecache.php b/lhc_web/modules/lhsystem/expirecache.php index f10ad7119c..79898c6721 100644 --- a/lhc_web/modules/lhsystem/expirecache.php +++ b/lhc_web/modules/lhsystem/expirecache.php @@ -1,5 +1,11 @@ validateCSFRToken($Params['user_parameters_unordered']['csfr'])) { + die('Invalid CSFR Token'); + exit; +} $CacheManager = erConfigClassLhCacheConfig::getInstance(); $CacheManager->expireCache(true); diff --git a/lhc_web/modules/lhsystem/module.php b/lhc_web/modules/lhsystem/module.php index 70a12d5241..09864697fb 100644 --- a/lhc_web/modules/lhsystem/module.php +++ b/lhc_web/modules/lhsystem/module.php @@ -36,7 +36,8 @@ $ViewList['expirecache'] = array( 'params' => array(), - 'functions' => array( 'expirecache' ) + 'functions' => array( 'expirecache' ), + 'uparams' => array('csfr') ); $ViewList['smtp'] = array(