cincin - 7:21 pm on Aug 3, 2013 (gmt 0)
I'm trying to fix a bug on a php web page that I did not write. I don't actually know php.
The problem is that the stock code converts the & of a url into & and so the resulting url in the address bar of the browser shows up as & when it should be &
$payment_error_return = 'payment_error=' . $this->code . '&error=' . urlencode($error) . '&psigate_xml_cc_owner=' . urlencode($HTTP_POST_VARS['psigate_xml_cc_owner']) . '&psigate_xml_cc_expires_month=' . $HTTP_POST_VARS['psigate_xml_cc_expires_month'] . '&psigate_xml_cc_expires_year=' . $HTTP_POST_VARS['psigate_xml_cc_expires_year'];
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, $payment_error_return, 'SSL', true, false));
This results in the url being:
but it needs to be
I have tried to apply (blindly, not knowing what I'm doing) various encoding decoding functions to the text with no success.
Any help is greatly appreciated, thanks!