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).'&';
|
$urlok.='fulltag='.urlencode($FULLTAG).'&';
|
||||||
$urlko.='fulltag='.urlencode($FULLTAG).'&';
|
$urlko.='fulltag='.urlencode($FULLTAG).'&';
|
||||||
}
|
}
|
||||||
/* This make url too long. Seems not required into the back url
|
|
||||||
if (! empty($SECUREKEY))
|
if (! empty($SECUREKEY))
|
||||||
{
|
{
|
||||||
$urlok.='securekey='.urlencode($SECUREKEY).'&';
|
$urlok.='securekey='.urlencode($SECUREKEY).'&';
|
||||||
$urlko.='securekey='.urlencode($SECUREKEY).'&';
|
$urlko.='securekey='.urlencode($SECUREKEY).'&';
|
||||||
}*/
|
}
|
||||||
if (! empty($entity))
|
if (! empty($entity))
|
||||||
{
|
{
|
||||||
$urlok.='e='.urlencode($entity).'&';
|
$urlok.='e='.urlencode($entity).'&';
|
||||||
@ -336,6 +335,10 @@ if ($action == 'dopayment')
|
|||||||
|
|
||||||
$origfulltag=GETPOST("fulltag",'alpha');
|
$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='';
|
$mesg='';
|
||||||
if (empty($PRICE) || ! is_numeric($PRICE)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Amount"));
|
if (empty($PRICE) || ! is_numeric($PRICE)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("Amount"));
|
||||||
elseif (empty($email)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("YourEMail"));
|
elseif (empty($email)) $mesg=$langs->trans("ErrorFieldRequired",$langs->transnoentitiesnoconv("YourEMail"));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user