diff options
author | is <is@pkgsrc.org> | 2006-04-20 18:34:07 +0000 |
---|---|---|
committer | is <is@pkgsrc.org> | 2006-04-20 18:34:07 +0000 |
commit | b45fd2b8d466a01d44ccedcbfcd4b5903ce113ba (patch) | |
tree | 21ab81e514283980b47e7cb7129bb8e7abdbe6d3 /www | |
parent | 3b1faeb219518eeff8da808c52bd675ede31a428 (diff) | |
download | pkgsrc-b45fd2b8d466a01d44ccedcbfcd4b5903ce113ba.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')
-rw-r--r-- | www/links-gui/Makefile | 4 | ||||
-rw-r--r-- | www/links/Makefile | 3 | ||||
-rw-r--r-- | www/links/distinfo | 4 | ||||
-rw-r--r-- | www/links/patches/patch-aa | 16 |
4 files changed, 21 insertions, 6 deletions
diff --git a/www/links-gui/Makefile b/www/links-gui/Makefile index cb3df05d951..30b4cb45150 100644 --- a/www/links-gui/Makefile +++ b/www/links-gui/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.40 2006/04/17 13:46:52 wiz Exp $ +# $NetBSD: Makefile,v 1.41 2006/04/20 18:34:07 is Exp $ # PKGNAME= links-gui-2.1.0.21 -PKGREVISION= 1 +PKGREVISION= 2 COMMENT= Lynx-like text and graphics WWW browser 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); + } + |