Date: Fri, 30 Jun 2000 12:58:55 -0700 (PDT) From: mikko@dynas.se To: FreeBSD-gnats-submit@freebsd.org Subject: ports/19609: Netscape-wrapper cannot open URLs containing commas Message-ID: <200006301958.MAA53815@explorer.rsa.com>
next in thread | raw e-mail | index | archive | help
>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(<url>, 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 %<HEX>, 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006301958.MAA53815>