Skip to content

Commit

Permalink
Fix: Change hash type to 'md5' which was used for invalid 'master' type
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 13, 2025
1 parent d32ba0f commit d8824dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/public/eventorganization/attendee_new.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2021 Dorian Vabre <[email protected]>
* Copyright (C) 2023 Laurent Destailleur <[email protected]>
* Copyright (C) 2024 MDW <[email protected]>
* Copyright (C) 2024-2025 MDW <[email protected]>
* Copyright (C) 2024 Frédéric France <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -362,7 +362,7 @@ function llxFooterVierge()

// If the registration has already been paid for this attendee
if (!empty($confattendee->date_subscription) && !empty($confattendee->amount)) {
$securekeyurl = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY') . 'conferenceorbooth'.$id, 'master');
$securekeyurl = dol_hash(getDolGlobalString('EVENTORGANIZATION_SECUREKEY') . 'conferenceorbooth'.$id, 'md5');
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.((int) $id).'&securekey='.urlencode($securekeyurl);

$mesg = $langs->trans("RegistrationAndPaymentWereAlreadyRecorded", $email);
Expand Down

0 comments on commit d8824dd

Please sign in to comment.