diff options
author | abs <abs@pkgsrc.org> | 2000-08-29 09:04:03 +0000 |
---|---|---|
committer | abs <abs@pkgsrc.org> | 2000-08-29 09:04:03 +0000 |
commit | fe63671277c10a7314f9f0081ac8a00a0997f29e (patch) | |
tree | 1476879fcd8b0b89eff5a3976a1e0ad90497f93f /www/ns-remote/files | |
parent | 697bf672be93e807e092d714e56da0e29e17b8a3 (diff) | |
download | pkgsrc-fe63671277c10a7314f9f0081ac8a00a0997f29e.tar.gz |
Update to 1.2 - escape ` in urls in ns-open
Diffstat (limited to 'www/ns-remote/files')
-rwxr-xr-x | www/ns-remote/files/ns-open | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/www/ns-remote/files/ns-open b/www/ns-remote/files/ns-open index ce0490e240c..29da5282156 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.1.1.1 2000/01/12 15:03:42 abs Exp $ +# $NetBSD: ns-open,v 1.2 2000/08/29 09:04:03 abs Exp $ # # Simple script to open a URL in Netscape, starting a new process if necessary # If a netscape process is not running will run 'netscape'. @@ -15,9 +15,9 @@ if [ -z "$1" ] then ns-remote -noraise -remote openBrowser else - # encode any ',' to avoid problems with the openURL(x,y) command - URL=`echo $1 | sed 's/,/%2c/g'` - ns-remote -noraise -remote openURL\(${URL}\,new-window\) + # encode ',' or '`' to avoid problems with the openURL(x,y) command + URL=`echo $1 | sed -e 's/,/%2c/g' -e 's/\`/%60/g` + echo ns-remote -noraise -remote openURL\(${URL}\,new-window\) fi if [ $? -ne 0 ] |