mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
599786bcb0
|
@ -193,6 +193,8 @@
|
|||
- fix potential clickjacking attack with manipulated email address of a user
|
||||
- loading more items on ViewFolder page obeys sort order
|
||||
- fix possible csrf attacks due to missing form token
|
||||
- show an error msg on the documents detail page if the checksum of version
|
||||
mismatch
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.21
|
||||
|
|
|
@ -621,6 +621,11 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
exit;
|
||||
}
|
||||
|
||||
$checksum = SeedDMS_Core_File::checksum($dms->contentDir, $latestContent->getPath());
|
||||
if($checksum != $latestContent->getChecksum()) {
|
||||
$this->errorMsg(getMLText('wrong_checksum'));
|
||||
}
|
||||
|
||||
$txt = $this->callHook('preLatestVersionTab', $latestContent);
|
||||
if(is_string($txt))
|
||||
echo $txt;
|
||||
|
|
Loading…
Reference in New Issue
Block a user