From 4f9aaa802abf523aab9e02e17809cdc17e6035f9 Mon Sep 17 00:00:00 2001 From: minima Date: Tue, 1 Nov 2005 20:18:14 +0000 Subject: [PATCH] fix a little used logging error for export. --- perl/DXUser.pm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/perl/DXUser.pm b/perl/DXUser.pm index 136ddee1..3df7fc20 100644 --- a/perl/DXUser.pm +++ b/perl/DXUser.pm @@ -482,9 +482,13 @@ print "There are $count user records and $err errors\n"; for ($action = R_FIRST; !$dbm->seq($key, $val, $action); $action = R_NEXT) { if (!is_callsign($key) || $key =~ /^0/) { - Log('DXCommand', "Export Error1: $key\t$val"); + my $eval = $val; + my $ekey = $key; + $eval =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg; + $ekey =~ s/([\%\x00-\x1f\x7f-\xff])/sprintf("%%%02X", ord($1))/eg; + Log('DXCommand', "Export Error1: $ekey\t$eval"); eval {$dbm->del($key)}; - dbg(carp("Export Error1: $key\t$val\n$@")) if $@; + dbg(carp("Export Error1: $ekey\t$eval\n$@")) if $@; ++$err; next; } -- 2.43.0