if ( (SEARCH_ENGINE_FRIENDLY_URLS == 'true') && ($search_engine_safe == true) ) {
$link = str_replace('?', '/', $link);
$link = str_replace('&', '/', $link);
$link = str_replace('=', '/', $link);
} else {
$link = str_replace('&', '&', $link);
}
This is breaking error reporting in some modules.
In Sage Pay the error url should be:
http://www.example.com/checkout_payment.php?payment_error=sage_pay_server&error=4000
but it is been changed to:
http://www.example.com/checkout_payment.php?payment_error=sage_pay_server&error=4000
So no error description is shown.















