
Originally Posted by
standpipe
Any way to fix this in 1.3.7 ? I'm not looking forward to doing an upgrade at this point, as I simply don't have the time or enough bugs to justify it yet.

Looking in my version history, here's what I did to fix mine in 1.3.7:
In authorizenet_aim.php, replaced:
Code:
// Insert the data into the database
$db->Execute("insert into " . TABLE_AUTHORIZENET . " (id, customer_id,order_id, response_code, response_text, authorization_type, transaction_id, sent, received, time, session_id) values ('', '" . $_SESSION['customer_id'] . "', '" . $new_order_id . "', '" . $db_response_code . "', '" . $db_response_text . "', '" . $db_authorization_type . "', '" . $db_transaction_id . "', '" . print_r($reportable_submit_data, true) . "', '" . $response_list . "', '" . $order_time . "', '" . $db_session_id . "')");
with
Code:
// Insert the data into the database
// BUGFIX: Added escaping of apostrophes used in addresses and other info
$reportable_submit_data_text = print_r($reportable_submit_data, true);
$reportable_submit_data_text = str_replace("'", "''", $reportable_submit_data_text);
$db->Execute("insert into " . TABLE_AUTHORIZENET . " (id, customer_id,order_id, response_code, response_text, authorization_type, transaction_id, sent, received, time, session_id) values ('', '" . $_SESSION['customer_id'] . "', '" . $new_order_id . "', '" . $db_response_code . "', '" . $db_response_text . "', '" . $db_authorization_type . "', '" . $db_transaction_id . "', '" . $reportable_submit_data_text . "', '" . $response_list . "', '" . $order_time . "', '" . $db_session_id . "')");
Use at your own risk :)