Better rule for redirect to paymentok/ko.
This commit is contained in:
parent
57d337696c
commit
1f056c4102
1 changed files with 2 additions and 1 deletions
|
|
@ -258,7 +258,8 @@ if ($ws && !defined('USEDOLIBARRSERVER') && !defined('USEDOLIBARREDITOR')) { //
|
|||
$tmpwebsite = new Website($db);
|
||||
$tmpwebsite->fetch(0, $ws);
|
||||
|
||||
if ($tmpwebsite->virtualhost == $lastproxy) {
|
||||
if (preg_replace('/https?:\/\//i', '', $tmpwebsite->virtualhost) == $lastproxy) {
|
||||
// If the newpayment.php page was called from a proxy with same domain than the website virtual host, we must use this one as the redirect domain url.
|
||||
$urlok = $tmpwebsite->virtualhost.'/public/payment/paymentok.php?';
|
||||
$urlko = $tmpwebsite->virtualhost.'/public/payment/paymentko.php?';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue