|
[SACVS] CVS: spamassassin/lib/Mail/SpamAssassin Dns.pm,1.143,1.144: msg#00045mail.spam.spamassassin.cvs
Update of /cvsroot/spamassassin/spamassassin/lib/Mail/SpamAssassin In directory sc8-pr-cvs1:/tmp/cvs-serv28808/lib/Mail/SpamAssassin Modified Files: Dns.pm Log Message: bug 2463: warnings due to %ENV autovivifaction Index: Dns.pm =================================================================== RCS file: /cvsroot/spamassassin/spamassassin/lib/Mail/SpamAssassin/Dns.pm,v retrieving revision 1.143 retrieving revision 1.144 diff -b -w -u -d -r1.143 -r1.144 --- Dns.pm 26 Aug 2003 14:46:22 -0000 1.143 +++ Dns.pm 16 Sep 2003 02:10:34 -0000 1.144 @@ -1106,11 +1106,13 @@ dbg ("entering helper-app run mode"); $self->{old_slash} = $/; # Razor pollutes this + %{$self->{old_env}} = (); if ( defined %ENV ) { - %{$self->{old_env}} = %ENV; + # undefined values in %ENV can result due to autovivification elsewhere, + # this prevents later possible warnings when we restore %ENV + while (my ($key, $value) = each %ENV) { + $self->{old_env}->{$key} = $value if defined $value; } - else { - %{$self->{old_env}} = (); } Mail::SpamAssassin::Util::clean_path_in_taint_mode(); ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SACVS] CVS: spamassassin/lib/Mail/SpamAssassin Conf.pm,1.251,1.252: 00045, Daniel Quinlan |
|---|---|
| Next by Date: | [SACVS] CVS: spamassassin Changes,1.43,1.44: 00045, Theo Van Dinter |
| Previous by Thread: | [SACVS] CVS: spamassassin/lib/Mail/SpamAssassin Conf.pm,1.251,1.252i: 00045, Daniel Quinlan |
| Next by Thread: | [SACVS] CVS: spamassassin Changes,1.43,1.44: 00045, Theo Van Dinter |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |