- make a bunch of feeds work. rfc2616 says field-content is octet.
checkValidHTTPHeader assumes the whole header is ascii, while only token should be adapted from snownews, liferea reuses network support code ok maintainer Wiktor Izdebski
This commit is contained in:
parent
7d3cf27f87
commit
6b6162a7a1
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2008/02/05 22:13:51 martynas Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2008/02/18 20:50:00 martynas Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= simple GTK desktop news aggregator
|
||||
|
||||
DISTNAME= liferea-1.4.12
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= www x11
|
||||
|
||||
HOMEPAGE= http://liferea.sourceforge.net/
|
||||
|
21
www/liferea/patches/patch-src_net_net-support_c
Normal file
21
www/liferea/patches/patch-src_net_net-support_c
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_net_net-support_c,v 1.1 2008/02/18 20:50:00 martynas Exp $
|
||||
--- src/net/net-support.c.orig Mon Jul 23 20:56:52 2007
|
||||
+++ src/net/net-support.c Mon Feb 18 00:38:28 2008
|
||||
@@ -272,7 +272,7 @@ int NetSupportAuth (struct feed_request * cur_ptr, cha
|
||||
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.
|
||||
@@ -291,6 +291,8 @@ int checkValidHTTPHeader (const unsigned char * header
|
||||
if (((header[i] < 32) || (header[i] > 127)) &&
|
||||
(header[i] != '\t') && (header[i] != '\r') && (header[i] != '\n'))
|
||||
return -1;
|
||||
+ if (header[i] == ':')
|
||||
+ break;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user