Closed Bug 686896 Opened 13 years ago Closed 13 years ago

Properly escape keyword searches when alternative character sets are specified.

Categories

(SeaMonkey :: Location Bar, defect)

defect
Not set
normal

Tracking

(seamonkey2.6 fixed)

RESOLVED FIXED
seamonkey2.6
Tracking Status
seamonkey2.6 --- fixed

People

(Reporter: philip.chee, Assigned: philip.chee)

Details

Attachments

(1 file)

From Firefox Bug 359809: Bookmark Keyword searches are not encoded properly (though keyword.URL is)

> Quick Search does not URL-encode plus signs (+). 
> 
> Searching for "c++" (without quotes), the %s (replaced portion of the URL) appears in the URL as:
> c++
> Instead of:
> c%2B%2B
> 
> The encoding (++) being decoded by the server as two spaces. 
> 
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1) Create a bookmark with the address:
> http://www.google.com.au/search?hl=en&q=%s&btnG=Google+Search&meta=
> 
> 2) Assign a keyword to the bookmark, i.e: 'g' (without quotes). 
> 
> 3) Type "g c++" (without quotes) in the address bar and press Enter. 
> 
> Actual Results:  
> The plus signs (+) do not get URL-encoded. 
> 
> Expected Results:  
> + should be encoded as %2B
Attached patch Patch v1.0.Splinter Review
Fixit.
Attachment #560376 - Flags: review?(neil)
Comment on attachment 560376 [details] [diff] [review]
Patch v1.0.

>+    // escape() works in those cases, but it doesn't uri-encode +, @, and /.
[Wonder why they didn't list them in ASCII order...]
Attachment #560376 - Flags: review?(neil) → review+
Pushed to comm-central
http://hg.mozilla.org/comm-central/rev/3a0e7fdf8b1c
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.6
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: