summaryrefslogtreecommitdiff
path: root/www/links
diff options
context:
space:
mode:
authoris <is>2006-04-20 18:34:07 +0000
committeris <is>2006-04-20 18:34:07 +0000
commit25dd38ff90cf62173ce8fae21ab8f91a95d1359e (patch)
tree21ab81e514283980b47e7cb7129bb8e7abdbe6d3 /www/links
parentfc8062e88212e13a82dd279eea38ed103b4be257 (diff)
downloadpkgsrc-25dd38ff90cf62173ce8fae21ab8f91a95d1359e.tar.gz
Drop trailing whitespace from interactively entered (e.g. cut'n'pasted)
URLs. This mimics the behaviour of other WWW browsers.
Diffstat (limited to 'www/links')
-rw-r--r--www/links/Makefile3
-rw-r--r--www/links/distinfo4
-rw-r--r--www/links/patches/patch-aa16
3 files changed, 19 insertions, 4 deletions
diff --git a/www/links/Makefile b/www/links/Makefile
index e96f208fffa..59569e559f0 100644
--- a/www/links/Makefile
+++ b/www/links/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.39 2006/04/09 16:17:55 wiz Exp $
+# $NetBSD: Makefile,v 1.40 2006/04/20 18:34:07 is Exp $
#
PKGNAME= links-2.1.0.21
+PKGREVISION= 1
COMMENT= Lynx-like text WWW browser
CONFLICTS+= links-gui-[0-9]* elinks-0.3*
diff --git a/www/links/distinfo b/www/links/distinfo
index 9f6f56f5913..69cb084eefd 100644
--- a/www/links/distinfo
+++ b/www/links/distinfo
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.34 2006/04/09 16:17:55 wiz Exp $
+$NetBSD: distinfo,v 1.35 2006/04/20 18:34:07 is Exp $
SHA1 (links-2.1pre21.tar.bz2) = 6806cdbaa9c2402ecd6e0734d113cf21ea89c252
RMD160 (links-2.1pre21.tar.bz2) = 051054b5ba0dd590d225d449e23b7f7970e218b3
Size (links-2.1pre21.tar.bz2) = 3869781 bytes
-SHA1 (patch-aa) = 47fab20748fc660517ebc2d2ef8a6b9c7c0dd1e4
+SHA1 (patch-aa) = 374bd3262b4f50712cd42898d67e90ebcba72577
SHA1 (patch-ab) = a2d461c9d8b6300469ab6195886830fdd63be837
diff --git a/www/links/patches/patch-aa b/www/links/patches/patch-aa
index c299028fa10..576157807f7 100644
--- a/www/links/patches/patch-aa
+++ b/www/links/patches/patch-aa
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.1 2002/09/04 20:47:45 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2006/04/20 18:34:07 is Exp $
--- session.c.orig Sat Jun 29 21:27:04 2002
+++ session.c
@@ -20,3 +20,17 @@ $NetBSD: patch-aa,v 1.1 2002/09/04 20:47:45 wiz Exp $
else add_chr_to_str(&u, &l, (unhx(url[1]) << 4) + unhx(url[2])), url += 2;
}
return u;
+@@ -2047,6 +2047,13 @@ void goto_url_f(struct session *ses, voi
+ /* this doesn't send referer */
+ void goto_url(struct session *ses, unsigned char *url)
+ {
++ char *p;
++ p = url + strlen(url);
++ do {
++ --p;
++ } while (isspace(*p));
++ *++p = 0;
++
+ goto_url_f(ses, NULL, url, NULL, NULL, -1, 0, 1, 0);
+ }
+