Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/links/Makefile,v retrieving revision 1.42 diff -u -r1.42 Makefile --- Makefile 13 Jul 2004 10:07:21 -0000 1.42 +++ Makefile 24 Mar 2005 13:44:31 -0000 @@ -6,11 +6,11 @@ # PORTNAME= links -PORTVERSION= 2.1.p15 +PORTVERSION= 2.1.p17 PORTEPOCH= 1 CATEGORIES?= www MASTER_SITES= http://atrey.karlin.mff.cuni.cz/~clock/twibright/links/download/ -DISTNAME= ${PORTNAME}-2.1pre15 +DISTNAME= ${PORTNAME}-2.1pre17 MAINTAINER?= demon@FreeBSD.org COMMENT= Lynx-like text WWW browser Index: distinfo =================================================================== RCS file: /home/ncvs/ports/www/links/distinfo,v retrieving revision 1.18 diff -u -r1.18 distinfo --- distinfo 13 Jul 2004 10:07:21 -0000 1.18 +++ distinfo 24 Mar 2005 13:44:31 -0000 @@ -1,2 +1,2 @@ -MD5 (links-2.1pre15.tar.bz2) = d70a0ad41fba921f04d222d3546827de -SIZE (links-2.1pre15.tar.bz2) = 3789080 +MD5 (links-2.1pre17.tar.bz2) = 94315d9ba68bbb543d93b3b3b4f07582 +SIZE (links-2.1pre17.tar.bz2) = 3829168 Index: files/patch-types.c =================================================================== RCS file: /home/ncvs/ports/www/links/files/patch-types.c,v retrieving revision 1.2 diff -u -r1.2 patch-types.c --- files/patch-types.c 1 Mar 2003 19:13:14 -0000 1.2 +++ files/patch-types.c 24 Mar 2005 13:44:31 -0000 @@ -1,12 +1,12 @@ ---- types.c.orig Sat Mar 1 19:06:39 2003 -+++ types.c Sat Mar 1 19:07:45 2003 -@@ -705,7 +705,8 @@ +--- types.c.orig Thu Mar 24 10:36:47 2005 ++++ types.c Thu Mar 24 10:38:12 2005 +@@ -796,7 +796,8 @@ if (*ct == '.') ext = ct + 1; else if (dir_sep(*ct)) ext = NULL; - if (ext) while (ext[extl] && !dir_sep(ext[extl]) && !end_of_dir(ext[extl])) extl++; + if (ext) while (ext[extl] && !dir_sep(ext[extl]) && !end_of_dir(url, ext[extl])) extl++; - if ((extl == 3 && !casecmp(ext, "htm", 3)) || + if (force_html || + (extl == 3 && !casecmp(ext, "htm", 3)) || (extl == 4 && !casecmp(ext, "html", 4))) return stracpy("text/html"); - foreach(e, extensions) if (is_in_list(e->ext, ext, extl)) return stracpy(e->ct); - + foreach(e, extensions) { + unsigned char *fname = NULL;