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

Jon Jensen <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 5b75841b4c994a1feb48ada6873a986931e4bc3c
Author: Greg Sabino Mullane <[email protected]>
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";
 			}
 		}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.