diff --git a/Sources/Actions/Admin/Registration.php b/Sources/Actions/Admin/Registration.php index d98b905ec6..1b4dd93178 100644 --- a/Sources/Actions/Admin/Registration.php +++ b/Sources/Actions/Admin/Registration.php @@ -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 { @@ -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 {