From owner-freebsd-ports Fri Jun 30 13: 0: 9 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id AE4BA37B76D for ; Fri, 30 Jun 2000 13:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id NAA23923; Fri, 30 Jun 2000 13:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 56C2737B645 for ; Fri, 30 Jun 2000 12:59:01 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 46182 invoked from network); 30 Jun 2000 19:58:57 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 30 Jun 2000 19:58:57 -0000 Received: (qmail 9042 invoked from network); 30 Jun 2000 19:59:01 -0000 Received: from explorer.rsa.com (10.81.217.59) by spirit.dynas.se with SMTP; 30 Jun 2000 19:59:01 -0000 Received: (from mikko@localhost) by explorer.rsa.com (8.9.3/8.9.3) id MAA53815; Fri, 30 Jun 2000 12:58:55 -0700 (PDT) (envelope-from mikko) Message-Id: <200006301958.MAA53815@explorer.rsa.com> Date: Fri, 30 Jun 2000 12:58:55 -0700 (PDT) From: mikko@dynas.se Reply-To: mikko@dynas.se To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19609: Netscape-wrapper cannot open URLs containing commas Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19609 >Category: ports >Synopsis: Netscape-wrapper cannot open URLs containing commas >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jun 30 13:00:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mikko Tyolajarvi >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: netscape-wrapper-2000.05.07 >Description: Any commas in a URL will be interpreted as additional arguments when netscape-remote is invoked "openURL(, new-window)" >How-To-Repeat: Run "netscape http://whatever/foo,bar". Watch usage message from OpenURL() pop up. >Fix: Escape problematic characters in URLs as %, for example: --- netscape-wrapper/files/netscape.sh.org Fri Jun 30 12:36:03 2000 +++ netscape-wrapper/files/netscape.sh Fri Jun 30 12:55:16 2000 @@ -58,7 +58,10 @@ # Try calling existing netscape process with functions, else start one. newbrowser () { - [ $# -gt 0 ] && url=`echo $@ | sed 's/\ -[^ ]*//g; s/\( | \)*//'` + if [ $# -gt 0 ]; then + quote='s/,/%2C/g; s/(/%28/g; s/)/%29/g;' + url=`echo $@ | sed 's/\ -[^ ]*//g; s/\( | \)*//;'"$quote"` + fi if [ -L $lockfile ]; then if [ "$url" = "" ]; then $netscape_remote $defsrem "xfeDoCommand($b_opt)" "$@" 2>/dev/null || \ >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message