Ok, there is a new line in 1.5 html_output.php that adds a security token for forms using post.
PHP Code:
* Output a form
*/
function zen_draw_form($name, $action, $method = 'post', $parameters = '') {
$form = '<form name="' . zen_output_string($name) . '" action="' . zen_output_string($action) . '" method="' . zen_output_string($method) . '"';
if (zen_not_null($parameters)) $form .= ' ' . $parameters;
$form .= '>';
if (strtolower($method) == 'post') $form .= '<input type="hidden" name="securityToken" value="' . $_SESSION['securityToken'] . '" />';
return $form;
}
In tp_checkout_confirmation_default.php we have the button/form creation:
PHP Code:
<?php
echo zen_draw_form('checkout_confirmation', $form_action_url, 'post', 'id="checkout_confirmation" onsubmit="submitonce();"');
if (is_array($payment_modules->modules)) {
echo $payment_modules->process_button();
}
?>
So the token is being added here.
While I can hack this for this one payment module, I am more interested in how it should be done properly.
thanks
Steve