From bbb4070e93b281de22b8db134b38f179ecad1dc2 Mon Sep 17 00:00:00 2001 From: martynas Date: Mon, 18 Feb 2008 17:48:48 +0000 Subject: [PATCH] - make a bunch of feeds work. rfc2616 says field-content is octet. checkValidHTTPHeader assumes the whole header is ascii, while only token should be - update to snownews-1.5.9 ok maintainer cathcart@ and kili@ --- www/snownews/Makefile | 4 ++-- www/snownews/distinfo | 10 +++++----- www/snownews/patches/patch-net-support_c | 21 +++++++++++++++++++++ 3 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 www/snownews/patches/patch-net-support_c diff --git a/www/snownews/Makefile b/www/snownews/Makefile index bf06c3e7057..0758c2238dd 100644 --- a/www/snownews/Makefile +++ b/www/snownews/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.17 2008/01/14 22:40:39 martynas Exp $ +# $OpenBSD: Makefile,v 1.18 2008/02/18 17:48:48 martynas Exp $ COMMENT= text mode rss newsreader -DISTNAME= snownews-1.5.8 +DISTNAME= snownews-1.5.9 CATEGORIES= www MASTER_SITES= ${HOMEPAGE}download/ diff --git a/www/snownews/distinfo b/www/snownews/distinfo index 4e62a3f9628..8f6cc207855 100644 --- a/www/snownews/distinfo +++ b/www/snownews/distinfo @@ -1,5 +1,5 @@ -MD5 (snownews-1.5.8.tar.gz) = s8VEm/BCFANOr9A31Z60aw== -RMD160 (snownews-1.5.8.tar.gz) = W6iCenCvrrW6U72bRo00frIKqRE= -SHA1 (snownews-1.5.8.tar.gz) = Ox1rJIEhrnkKmCd2RIKMdOTxqi0= -SHA256 (snownews-1.5.8.tar.gz) = lU2vnFjq7pNF59z4amqn1GCPjBXqSqRPA9ht0x6m8vk= -SIZE (snownews-1.5.8.tar.gz) = 166612 +MD5 (snownews-1.5.9.tar.gz) = Dz3KhaNjhqcgM7g6ICxVng== +RMD160 (snownews-1.5.9.tar.gz) = R4yLYOO/sfDrEyaMbesqJYgxqms= +SHA1 (snownews-1.5.9.tar.gz) = o8d4Jywa5ZnhHyg/qxvSZ8o68BE= +SHA256 (snownews-1.5.9.tar.gz) = YTc3LCcJZD5+vNqJPeZWdXq9iN3JPIJ7eXZTH9j6Bk0= +SIZE (snownews-1.5.9.tar.gz) = 170666 diff --git a/www/snownews/patches/patch-net-support_c b/www/snownews/patches/patch-net-support_c new file mode 100644 index 00000000000..411109dd171 --- /dev/null +++ b/www/snownews/patches/patch-net-support_c @@ -0,0 +1,21 @@ +$OpenBSD: patch-net-support_c,v 1.1 2008/02/18 17:48:48 martynas Exp $ +--- net-support.c.orig Tue Jan 8 11:41:02 2008 ++++ net-support.c Mon Feb 18 00:07:00 2008 +@@ -243,7 +243,7 @@ int NetSupportAuth (struct feed * cur_ptr, const char + return 0; + } + +-/* HTTP header may only contain ASCII characters. ++/* HTTP token may only contain ASCII characters. + * + * Ensure that we don't hit the terminating \0 in a string + * with the for loop. +@@ -262,6 +262,8 @@ int checkValidHTTPHeader (const unsigned char * header + if (((header[i] < 32) || (header[i] > 127)) && + (header[i] != '\r') && (header[i] != '\n')) + return -1; ++ if (header[i] == ':') ++ break; + } + return 0; + }