Author: ask
Date: Wed Sep 26 12:00:45 2007
New Revision: 802
Modified:
trunk/Changes
trunk/plugins/virus/check_for_hi_virus
Log:
Fix false positives in check_for_hi_virus plugin (Jerry D. Hedden)
Modified: trunk/Changes
==============================================================================
--- trunk/Changes (original)
+++ trunk/Changes Wed Sep 26 12:00:45 2007
@@ -1,4 +1,4 @@
-0.41 - September 25, 2007
+0.42
New docs/plugins.pod documentation!
@@ -30,6 +30,8 @@
Fix bug which breaks queue plugins that implement continuations
+ Fix false positives in check_for_hi_virus plugin (Jerry D. Hedden)
+
Unrecognized command fix (issue #16)
Updated documentation (Apache 2.2, more)
Modified: trunk/plugins/virus/check_for_hi_virus
==============================================================================
--- trunk/plugins/virus/check_for_hi_virus (original)
+++ trunk/plugins/virus/check_for_hi_virus Wed Sep 26 12:00:45 2007
@@ -15,14 +15,14 @@
last if $line_number++ > 40;
if (/^Content-Type: (.*)/) {
my $val = $1;
- if ($val =~ /name="(.*)"/) {
+ if ($val =~ /name="(.*?)"/) {
$seen_file = 1;
$ct_filename = $1;
}
}
if (/^Content-Disposition: (.*)/) {
my $val = $1;
- if ($val =~ /filename="(.*)"/) {
+ if ($val =~ /filename="(.*?)"/) {
$seen_file = 1;
$cd_filename = $1;
}