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 | 05217b1fc2b23c67c5512c7c8fd44180853a12c2 (patch) | |
tree | 210a4623b06de5946ffc495900150c226a8d1eb9 /www/ns-remote | |
parent | b11ea473559fe841d1bf52ce86d6e07cecd1852b (diff) | |
download | pkgsrc-05217b1fc2b23c67c5512c7c8fd44180853a12c2.tar.gz |
Update to ns-remote-1.11nb3: correctly escape spaces in URLs in ns-open
Diffstat (limited to 'www/ns-remote')
-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 |