http://www.mediawiki.org/wiki/Special:Code/MediaWiki/71217
Revision: 71217 Author: awjrichards Date: 2010-08-17 23:03:59 +0000 (Tue, 17 Aug 2010) Log Message: ----------- Added 'referrer' to logging for initial minfraud queries and am running log strings through addslashes() for better parsability Modified Paths: -------------- trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php Modified: trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php =================================================================== --- trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php 2010-08-17 22:00:39 UTC (rev 71216) +++ trunk/extensions/DonationInterface/payflowpro_gateway/extras/minfraud/minfraud.php 2010-08-17 23:03:59 UTC (rev 71217) @@ -84,11 +84,12 @@ // log the message if the user has specified a log file if ( $this->log_fh ) { - $log_message = '"' . $data[ 'comment' ] . '"'; - $log_message .= "\t" . '"' . $data[ 'amount' ] . ' ' . $data[ 'currency' ] . '"'; - $log_message .= "\t" . '"' . serialize( $minfraud_hash ) . '"'; - $log_message .= "\t" . '"' . serialize( $this->minfraud_response ) . '"'; - $log_message .= "\t" . '"' . serialize( $pfp_gateway_object->action ) . '"'; + $log_message = '"' . addslashes( $data[ 'comment' ] ) . '"'; + $log_message .= "\t" . '"' . addslashes( $data[ 'amount' ] . ' ' . $data[ 'currency' ] ) . '"'; + $log_message .= "\t" . '"' . addslashes( serialize( $minfraud_hash )) . '"'; + $log_message .= "\t" . '"' . addslashes( serialize( $this->minfraud_response )) . '"'; + $log_message .= "\t" . '"' . addslashes( $pfp_gateway_object->action ) . '"'; + $log_message .= "\t" . '"' . addslashes( $data[ 'referrer' ] ) . '"'; $this->log( $data[ 'contribution_tracking_id' ], 'minFraud query', $log_message ); } return TRUE; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs