INN commit: branches/2.5 (doc/pod/news.pod nnrpd/perl.c)
INN Commit
rra at isc.org
Fri Jan 22 22:55:37 UTC 2010
Date: Friday, January 22, 2010 @ 14:55:37
Author: iulius
Revision: 8916
Fixed a bug in nnrpd Perl filter: a header field whose name begins with
the name of a standardized header field was not properly taken into account.
(For instance "Organization-Test".)
Modified:
branches/2.5/doc/pod/news.pod
branches/2.5/nnrpd/perl.c
------------------+
doc/pod/news.pod | 5 +++++
nnrpd/perl.c | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
Modified: doc/pod/news.pod
===================================================================
--- doc/pod/news.pod 2010-01-22 22:54:53 UTC (rev 8915)
+++ doc/pod/news.pod 2010-01-22 22:55:37 UTC (rev 8916)
@@ -173,6 +173,11 @@
=item *
+Fixed a bug in B<nnrpd> Perl filter: a header field whose name begins with
+the name of a standardized header field was not properly taken into account.
+
+=item *
+
Fixed a bug on how B<innd> was parsing Message-ID: and Supersedes: headers
which contained trailing whitespaces. The article ended up
corrupted because of an unexpected "\r" in the middle of the header.
Modified: nnrpd/perl.c
===================================================================
--- nnrpd/perl.c 2010-01-22 22:54:53 UTC (rev 8915)
+++ nnrpd/perl.c 2010-01-22 22:55:37 UTC (rev 8916)
@@ -143,7 +143,7 @@
/* See if it is a table header. */
for (hp = Table; hp < EndOfTable; hp++) {
- if (strncasecmp(p, hp->Name, hp->Size) == 0) {
+ if (strcasecmp(p, hp->Name) == 0) {
char *copy = xstrdup(s);
HDR_SET(hp - Table, copy);
hp->Len = TrimSpaces(hp->Value);
More information about the inn-committers
mailing list