Article View: news.software.nntp
Article #88229Re: Cleanfeed patch suggestion
From: Julien ÉLIE
Date: Mon, 02 Mar 2020 19:25
Date: Mon, 02 Mar 2020 19:25
59 lines
3497 bytes
3497 bytes
Hi,
> Those who use cleanfeed, I suggest this patch (against crooks/cleanfeed
> master branch):
>
> -----------------------------------------------------------------
> --- cleanfeed 2020-02-17 23:05:35.098900000 +0200
> +++ cleanfeed.new 2020-02-17 23:09:07.395002000 +0200
> @@ -952,6 +952,7 @@
> } else {
> if (not $gr{binary}) {
> return reject("Binary: misplaced binary");
> + };
> }; # End of misplaced binary check
> # If configured to reject all binary, we do it last so
> # misplaced stuff is still highlighted.
> @@ -1612,7 +1613,6 @@
> if (/line=/ and /size=/ and /name=/) {
> $state{cache_is_binary} = "yEnc Encoded";
> return $state{cache_is_binary};
> - };
> };
> };
> -----------------------------------------------------------------
That's a pretty good catch.
Latest commit should indeed be fixed.
https://github.com/crooks/cleanfeed/commit/b3c6bcf6e34a6d35cad402d34c7ff76aba481c6d
--- cleanfeed.old 2020-03-02 20:13:02.484310099 +0100
+++ cleanfeed 2020-03-02 20:20:44.962272044 +0100
@@ -952,7 +952,8 @@
} else {
if (not $gr{binary}) {
return reject("Binary: misplaced binary");
- }; # End of misplaced binary check
+ }; # End of misplaced binary check
+ }; # End of file and image extensions check
# If configured to reject all binary, we do it last so
# misplaced stuff is still highlighted.
return reject("Binary Payload")
@@ -1612,7 +1613,6 @@
if (/line=/ and /size=/ and /name=/) {
$state{cache_is_binary} = "yEnc Encoded";
return $state{cache_is_binary};
- };
};
};
--
Julien ÉLIE
« Petite annonce : Artificier cherche femme canon. »
Technical Details
Message-ID:
<r3jmk2$qr$1@news.trigofacile.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<r3en0g$2t1c$1@news.usenet.ee>Show Full Headers
Complete Article Headers
Message-ID: <r3jmk2$qr$1@news.trigofacile.com> Subject: Re: Cleanfeed patch suggestion Date: Mon, 2 Mar 2020 20:25:54 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <r3en0g$2t1c$1@news.usenet.ee> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 2 Mar 2020 19:25:54 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0800a7750065ccda88b14c03cc.ipv6.abo.wanadoo.fr:2a01:cb08:a7:7500:65cc:da88:b14c:3cc"; logging-data="859"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 In-Reply-To: <r3en0g$2t1c$1@news.usenet.ee> Content-Language: fr