uribl plugin - trivial patch
[email protected] (Steve Freegard)
| Newsgroups | perl.qpsmtpd |
|---|---|
| Message-ID | <[email protected]> |
Hi all, Finally got some time over the holidays to play with qpsmtpd - whilst doing so I noticed what I believe to be a tiny bug in the uribl plug-in that ships with qpsmtpd. I wasn't sure where to post the patch; so I guessed that here was as good as place as any. See attached. The patch skips to the next line in the case of quoted-printable continuations; this is to save a few CPU cycles and prevent the possibility of a partial match of a URI. Kind regards, Steve.
uribl.diff
(application/octet-stream, 434 B)
--- uribl 2011-01-19 10:04:46.000000000 -0500
+++ uribl.new 2011-01-19 10:05:21.000000000 -0500
@@ -283,6 +283,9 @@
if ($l =~ /(.*)=$/) {
push @qp_continuations, $1;
+ # Skip to the next iteration until
+ # we have a full line in the buffer
+ next;
} elsif (@qp_continuations) {
$l = join('', @qp_continuations, $l);
@qp_continuations = ();