[interchange] Make log output for AllowRemoteSearch violations much more useful

Jon Jensen interchange-cvs at icdevgroup.org
Fri Feb 19 00:03:35 UTC 2010


commit 5b75841b4c994a1feb48ada6873a986931e4bc3c
Author: Greg Sabino Mullane <greg at endoint.com>
Date:   Wed Feb 17 22:33:23 2010 -0500

    Make log output for AllowRemoteSearch violations much more useful

 lib/Vend/Page.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Page.pm b/lib/Vend/Page.pm
index 3986f53..92a0d37 100644
--- a/lib/Vend/Page.pm
+++ b/lib/Vend/Page.pm
@@ -173,7 +173,7 @@ sub _check_search_file {
 		for $f (@files) {
 			unless (grep { $f eq $_ } @{$Vend::Cfg->{AllowRemoteSearch}}) {
 				::logGlobal("Security violation, trying to remote search '%s', doesn't match '%s'",
-					$_, $Vend::Cfg->{AllowRemoteSearch});
+					$f, join ',' => @{$Vend::Cfg->{AllowRemoteSearch}});
 				die "Security violation";
 			}
 		}



More information about the interchange-cvs mailing list