pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/ns-remote Update to ns-remote-1.11nb3: correctly e...
details: https://anonhg.NetBSD.org/pkgsrc/rev/600798f58ffe
branches: trunk
changeset: 527265:600798f58ffe
user: abs <abs%pkgsrc.org@localhost>
date: Mon Apr 02 21:59:30 2007 +0000
description:
Update to ns-remote-1.11nb3: correctly escape spaces in URLs in ns-open
diffstat:
www/ns-remote/Makefile | 6 +++---
www/ns-remote/files/ns-open | 10 ++++++++--
2 files changed, 11 insertions(+), 5 deletions(-)
diffs (53 lines):
diff -r 45cd6699ad0b -r 600798f58ffe www/ns-remote/Makefile
--- a/www/ns-remote/Makefile Mon Apr 02 15:25:53 2007 +0000
+++ b/www/ns-remote/Makefile Mon Apr 02 21:59:30 2007 +0000
@@ -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@localhost
+MAINTAINER= abs%NetBSD.org@localhost
HOMEPAGE= http://www.netscape.com/newsref/std/x-remote.html
COMMENT= Remote-control of Netscape and Mozilla-based browsers
diff -r 45cd6699ad0b -r 600798f58ffe www/ns-remote/files/ns-open
--- a/www/ns-remote/files/ns-open Mon Apr 02 15:25:53 2007 +0000
+++ b/www/ns-remote/files/ns-open Mon Apr 02 21:59:30 2007 +0000
@@ -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 @@
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 @@
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
Home |
Main Index |
Thread Index |
Old Index