Index: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php |
— | — | @@ -84,11 +84,12 @@ |
85 | 85 | |
86 | 86 | // log the message if the user has specified a log file |
87 | 87 | if ( $this->log_fh ) { |
88 | | - $log_message = '"' . $data[ 'comment' ] . '"'; |
89 | | - $log_message .= "\t" . '"' . $data[ 'amount' ] . ' ' . $data[ 'currency' ] . '"'; |
90 | | - $log_message .= "\t" . '"' . serialize( $minfraud_hash ) . '"'; |
91 | | - $log_message .= "\t" . '"' . serialize( $this->minfraud_response ) . '"'; |
92 | | - $log_message .= "\t" . '"' . serialize( $pfp_gateway_object->action ) . '"'; |
| 88 | + $log_message = '"' . addslashes( $data[ 'comment' ] ) . '"'; |
| 89 | + $log_message .= "\t" . '"' . addslashes( $data[ 'amount' ] . ' ' . $data[ 'currency' ] ) . '"'; |
| 90 | + $log_message .= "\t" . '"' . addslashes( serialize( $minfraud_hash )) . '"'; |
| 91 | + $log_message .= "\t" . '"' . addslashes( serialize( $this->minfraud_response )) . '"'; |
| 92 | + $log_message .= "\t" . '"' . addslashes( $pfp_gateway_object->action ) . '"'; |
| 93 | + $log_message .= "\t" . '"' . addslashes( $data[ 'referrer' ] ) . '"'; |
93 | 94 | $this->log( $data[ 'contribution_tracking_id' ], 'minFraud query', $log_message ); |
94 | 95 | } |
95 | 96 | return TRUE; |