Mailinglist Archive: opensuse-bugs (9910 mails)
| < Previous | Next > |
[Bug 231683] New: firefox wrapper script does not handle quoted arguments correctly
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Wed, 3 Jan 2007 19:46:22 -0700 (MST)
- Message-id: <bug-231683-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=231683
Summary: firefox wrapper script does not handle quoted arguments
correctly
Product: openSUSE 10.2
Version: Final
Platform: x86-64
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Firefox
AssignedTo: bnc-team-mozilla@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ken@xxxxxxxxxxxxxx
QAContact: qa@xxxxxxx
The shell script /usr/bin/firefox handles quoted arguments incorrectly. This
can most easily be seen by trying to access a file:// URL containing spaces,
such as:
firefox 'file:///home/user/My Documents/testpage.html'
The reason is that the two invocations of $MOZ_PROGRAM near the bottom of the
script do not quote $@. The correct way to do it is $MOZ_PROGRAM "$@". Without
the quotes, the shell breaks up the above URL into two arguments.
This doesn't cause problems most of the time because 1. most people do not
launch firefox with a URL on the command line and 2. most http:// URLs escape
spaces as %20.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Summary: firefox wrapper script does not handle quoted arguments
correctly
Product: openSUSE 10.2
Version: Final
Platform: x86-64
OS/Version: Other
Status: NEW
Severity: Minor
Priority: P5 - None
Component: Firefox
AssignedTo: bnc-team-mozilla@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: ken@xxxxxxxxxxxxxx
QAContact: qa@xxxxxxx
The shell script /usr/bin/firefox handles quoted arguments incorrectly. This
can most easily be seen by trying to access a file:// URL containing spaces,
such as:
firefox 'file:///home/user/My Documents/testpage.html'
The reason is that the two invocations of $MOZ_PROGRAM near the bottom of the
script do not quote $@. The correct way to do it is $MOZ_PROGRAM "$@". Without
the quotes, the shell breaks up the above URL into two arguments.
This doesn't cause problems most of the time because 1. most people do not
launch firefox with a URL on the command line and 2. most http:// URLs escape
spaces as %20.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
| < Previous | Next > |