security fix, id was encoded where it should not be encoded
This commit is contained in:
parent
2169a106fa
commit
6111f43946
@ -98,6 +98,7 @@ EvntOrgCancelled = Cancelled
|
|||||||
#
|
#
|
||||||
SuggestForm = Suggestion page
|
SuggestForm = Suggestion page
|
||||||
RegisterPage = Page for conferences or booth
|
RegisterPage = Page for conferences or booth
|
||||||
|
EvntOrgRegistrationHelpMessage = Here, you can vote for an event, or suggest a new conference or booth for the project
|
||||||
EvntOrgRegistrationConfHelpMessage = Here, you can suggest a new conference for the project
|
EvntOrgRegistrationConfHelpMessage = Here, you can suggest a new conference for the project
|
||||||
EvntOrgRegistrationBoothHelpMessage = Here, you can suggest a new booth for the project
|
EvntOrgRegistrationBoothHelpMessage = Here, you can suggest a new booth for the project
|
||||||
ListOfSuggestedConferences = List of suggested conferences
|
ListOfSuggestedConferences = List of suggested conferences
|
||||||
|
|||||||
@ -496,9 +496,8 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
}
|
}
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$db->commit();
|
$db->commit();
|
||||||
$encodedid = dol_encode($id, $dolibarr_main_instance_unique_id);
|
|
||||||
$securekeyurl = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
$securekeyurl = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
||||||
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.$encodedid.'&securekey='.$securekeyurl;
|
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.$id.'&securekey='.$securekeyurl;
|
||||||
Header("Location: ".$redirection);
|
Header("Location: ".$redirection);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -430,9 +430,8 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
}
|
}
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$db->commit();
|
$db->commit();
|
||||||
$encodedid = dol_encode($id, $dolibarr_main_instance_unique_id);
|
|
||||||
$securekeyurl = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
$securekeyurl = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 2);
|
||||||
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.$encodedid.'&securekey='.$securekeyurl;
|
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.$id.'&securekey='.$securekeyurl;
|
||||||
Header("Location: ".$redirection);
|
Header("Location: ".$redirection);
|
||||||
exit;
|
exit;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user