1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

Escape problematic characters such as ,', (' and `)' in an URL.

PR:		ports/19609
Submitted by:	Mikko Tyolajarvi <mikko@dynas.se>
This commit is contained in:
Akinori MUSHA 2000-07-07 08:43:20 +00:00
parent 90e7e4b590
commit 3382787971
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30290
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= netscape-wrapper
PORTVERSION= 2000.06.28
PORTVERSION= 2000.07.7
CATEGORIES= www
MASTER_SITES= # none
DISTFILES= # none

View File

@ -58,7 +58,7 @@ killstale () {
# Try calling existing netscape process with functions, else start one.
newbrowser () {
[ $# -gt 0 ] && url=`echo $@ | sed 's/\ -[^ ]*//g; s/\( | \)*//'`
[ $# -gt 0 ] && url=`echo $@ | sed 's/\ -[^ ]*//g; s/\( | \)*//; s/,/%2C/g; s/(/%28/g; s/)/%29/g;'`
if [ -L $lockfile ]; then
if [ "$url" = "" ]; then
$netscape_remote $defsrem "xfeDoCommand($b_opt)" "$@" 2>/dev/null || \