N°8549 - Update inline images secret (#815)

This commit is contained in:
Stephen Abello
2026-02-23 15:42:21 +01:00
committed by GitHub
parent d5f2303ed2
commit 9c39efd9af
2 changed files with 3 additions and 4 deletions

View File

@@ -362,8 +362,7 @@ class ormDocument
throw new Exception("Invalid id ($id) for class '$sClass' - the object does not exist or you are not allowed to view it");
}
}
if (($sSecretField != null) && ($oObj->Get($sSecretField) != $sSecretValue)) {
usleep(200);
if (($sSecretField != null) && !hash_equals($oObj->Get($sSecretField), $sSecretValue)) {
throw new Exception("Invalid secret for class '$sClass' - the object does not exist or you are not allowed to view it");
}
/** @var \ormDocument $oDocument */