mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 22:47:03 +03:00
Add hash saver for future security improvements.
This commit is contained in:
parent
8dbf099934
commit
6f258f2c60
2 changed files with 30 additions and 2 deletions
|
|
@ -178,11 +178,18 @@ class Service
|
|||
$bCached = true;
|
||||
}
|
||||
|
||||
$sAppHash = '';
|
||||
if (\file_exists(APP_DATA_FOLDER_PATH.'HASH'))
|
||||
{
|
||||
$sAppHash = @\file_get_contents(APP_DATA_FOLDER_PATH.'HASH');
|
||||
}
|
||||
|
||||
$sResult .= '<!--';
|
||||
$sResult .= ' [version:'.APP_VERSION;
|
||||
$sResult .= '][time:'.substr(\microtime(true) - APP_START, 0, 6);
|
||||
$sResult .= '][cached:'.($bCached ? 'true' : 'false');
|
||||
$sResult .= '][session:'.md5(\RainLoop\Utils::GetShortToken());
|
||||
$sResult .= '][hash:'.$sAppHash;
|
||||
$sResult .= '] -->';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue