Solve url too long with paybox

This commit is contained in:
Laurent Destailleur 2017-09-21 12:02:46 +02:00
parent cb90ab124b
commit 296e678c1b

View File

@ -143,12 +143,11 @@ if (! empty($FULLTAG))
$urlok.='fulltag='.urlencode($FULLTAG).'&';
$urlko.='fulltag='.urlencode($FULLTAG).'&';
}
/* This make url too long. Seems not required into the back url
if (! empty($SECUREKEY))
{
$urlok.='securekey='.urlencode($SECUREKEY).'&';
$urlko.='securekey='.urlencode($SECUREKEY).'&';
}*/
}
if (! empty($entity))
{
$urlok.='e='.urlencode($entity).'&';
@ -336,6 +335,10 @@ if ($action == 'dopayment')
$origfulltag=GETPOST("fulltag",'alpha');
// Securekey into back url useless for back url and we need an url lower than 150.
$urlok = preg_replace('/securekey=[^&]+/', '', $urlok);
$urlko = preg_replace('/securekey=[^&]+/', '', $urlko);
$mesg='';
if (empty($PRICE) || ! is_numeric($PRICE)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Amount"));
elseif (empty($email)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("YourEMail"));