[interchange] SagePay: stop logging sensitive info (GitHub issue #18)

Josh Lavin interchange-cvs at icdevgroup.org
Mon Jun 30 23:25:48 UTC 2014


commit bb24125fbca50db088de59a0c50a75cea5232135
Author: Josh Lavin <josh at perusion.com>
Date:   Mon Jun 30 16:25:20 2014 -0700

    SagePay: stop logging sensitive info (GitHub issue #18)

 lib/Vend/Payment/SagePay.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Payment/SagePay.pm b/lib/Vend/Payment/SagePay.pm
index a6aba3e..dc2d260 100644
--- a/lib/Vend/Payment/SagePay.pm
+++ b/lib/Vend/Payment/SagePay.pm
@@ -977,7 +977,7 @@ if ($request eq 'psp') {
 #::logDebug("SP".__LINE__.": now for keys in query");
   my @query;
     	foreach my $key (sort keys(%query)) {
-    	::logDebug("Query to SagePay: \"$key=$query{$key}\""); # nicely readable version of the string sent
+#::logDebug(qq{Query to SagePay: "$key=$query{$key}"}); # nicely readable version of the string sent (careful: this line will log sensitive info)
        	push @query, "$key=$query{$key}";
     	}
   



More information about the interchange-cvs mailing list