- 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@
This commit is contained in:
parent
7a46ddb1fa
commit
bbb4070e93
@ -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/
|
||||
|
||||
|
@ -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
|
||||
|
21
www/snownews/patches/patch-net-support_c
Normal file
21
www/snownews/patches/patch-net-support_c
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user