diff options
author | abs <abs@pkgsrc.org> | 2007-04-02 21:59:30 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2007-04-02 21:59:30 +0000 |
commit | e2de28c046b661abf7a5d2c9b50771bf8c93f914 (patch) | |
tree | 210a4623b06de5946ffc495900150c226a8d1eb9 /www | |
parent | 4177e9c65731dfd985b8037044dbbd394d3904d2 (diff) | |
download | pkgsrc-e2de28c046b661abf7a5d2c9b50771bf8c93f914.tar.gz |
Update to ns-remote-1.11nb3: correctly escape spaces in URLs in ns-open
Diffstat (limited to 'www')
-rw-r--r-- | www/ns-remote/Makefile | 6 | ||||
-rwxr-xr-x | www/ns-remote/files/ns-open | 10 |
2 files changed, 11 insertions, 5 deletions
diff --git a/www/ns-remote/Makefile b/www/ns-remote/Makefile index b72d4a40dd9..8fb1079ab04 100644 --- a/www/ns-remote/Makefile +++ b/www/ns-remote/Makefile @@ -1,13 +1,13 @@ -# $NetBSD: Makefile,v 1.32 2007/03/21 12:36:17 abs Exp $ +# $NetBSD: Makefile,v 1.33 2007/04/02 21:59:30 abs Exp $ DISTNAME= ns-remote PKGNAME= ns-remote-1.11 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= www MASTER_SITES= http://home.netscape.com/newsref/std/ DISTFILES= remote.c vroot.h -MAINTAINER= norm@mono.org +MAINTAINER= abs@NetBSD.org HOMEPAGE= http://www.netscape.com/newsref/std/x-remote.html COMMENT= Remote-control of Netscape and Mozilla-based browsers diff --git a/www/ns-remote/files/ns-open b/www/ns-remote/files/ns-open index de6b3c2a581..7642c8905b6 100755 --- a/www/ns-remote/files/ns-open +++ b/www/ns-remote/files/ns-open @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: ns-open,v 1.16 2007/03/21 12:36:17 abs Exp $ +# $NetBSD: ns-open,v 1.17 2007/04/02 21:59:31 abs Exp $ # # Simple script to open a URL in Netscape, starting a new process if necessary # If a netscape process is not running it will look for a valid netscape @@ -35,6 +35,12 @@ for prog in $NETSCAPE_PREFERRED ; do done IFS="$oldIFS" +escape() + { + str=$1 + echo "$str" | sed -e 's/ /%20/g' -e 's/"/%22/g' -e 's/,/%2c/g' -e 's/\`/%60/g' + } + # Check if there are any '-' options which would not be understood by ns-remote # Slightly involved to avoid changing $@ in case we need it for real netscape # @@ -60,7 +66,7 @@ do START_NEW_NETSCAPE=1 ;; *) - URL=`echo $a | sed -e 's/"/%22/g' -e 's/\`/%60/g' -e 's/,/%2c/g'` + URL=`escape "$a"` break; ;; esac |