Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/Actions/Admin/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ public function agreement(): void
// If no one else has accepted the current version, we can
// simplify the history a bit.
if (empty($num_accepted)) {
if ($edit_history[1][1] === $diff->label1) {
if ($edit_history[1][1] === hash('crc32c', $_POST['agreement'])) {
// The admin is simply undoing the last change.
$rollback = true;
} else {
Expand Down Expand Up @@ -489,7 +489,7 @@ public function privacyPolicy(): void
// If no one else has accepted the current version, we can
// simplify the history a bit.
if (empty($num_accepted)) {
if (isset($edit_history[1]) && $edit_history[1][1] === $diff->label1) {
if (isset($edit_history[1]) && $edit_history[1][1] === hash('crc32c', $_POST['policy'])) {
// The admin is simply undoing the last change.
$rollback = true;
} else {
Expand Down