Closed Bug 212668 Opened 21 years ago Closed 21 years ago

Keyword parameter expansion doesn't escape &

Categories

(SeaMonkey :: Bookmarks & History, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 123006

People

(Reporter: mikhail.zabaluev, Assigned: p_ch)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624

I have a bookmark to search on a site with the keyword 'e2' and the following
parameterized location:
http://www.everything2.com/index.pl?node=%s

When I enter "e2 Heckler & Koch" in the location bar, the & character doesn't
get its proper percent-escape in the resulting URL:
http://www.everything2.com/index.pl?node=Heckler%20&%20Koch

As the result, "%20Koch" is treated as a separate query parameter.

P.S. Spaces are used to be escaped by '+' in the URL form data encoding,
although '%20' seems to be OK as well.

Reproducible: Always

Steps to Reproduce:
1. Create a bookmark with a parameterized URL and a keyword.
2. Enter the keyword followed by a parameter string including '&'. 

Actual Results:  
Incorrect encoding of the resulting URL.

Expected Results:  
The '&' character should have been escaped as '%26'.

*** This bug has been marked as a duplicate of 123006 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.