Solve url too long with paybox
This commit is contained in:
parent
cb90ab124b
commit
296e678c1b
@ -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"));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user