Closed
Bug 916466
Opened 12 years ago
Closed 10 years ago
Backslashes are accepted as valid characters in URLs
Categories
(Firefox :: Address Bar, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1026938
People
(Reporter: musicdenotation, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0 (Beta/Release)
Build ID: 20130909203154
Steps to reproduce:
Visit this link:
https://en.wikipedia.org/wiki\Firefox
Actual results:
The link displays on the address bar with backslashes
Expected results:
Firefox should have substituted backslashes with %5C
| Reporter | ||
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
| Reporter | ||
Comment 1•12 years ago
|
||
Backslashes are not valid character in URIs. This behavior can cause problems when someone copies the address from the Firefox address bar and post it online.
| Reporter | ||
Updated•12 years ago
|
Version: 23 Branch → 21 Branch
After visiting the link, I then copied it from the address bar, and pasting it here shows it with %5C
https://en.wikipedia.org/wiki%5CFirefox
I think this is WORKSFORME.
| Reporter | ||
Comment 3•12 years ago
|
||
(In reply to Mardeg from comment #2)
> After visiting the link, I then copied it from the address bar, and pasting
> it here shows it with %5C
> https://en.wikipedia.org/wiki%5CFirefox
>
> I think this is WORKSFORME.
But the link displays the wrong way.
Comment 4•12 years ago
|
||
Mozilla/5.0 (Windows NT 6.1; rv:26.0) Gecko/20100101 Firefox/26.0 ID:20130915030208
(In reply to Mardeg from comment #2)
> After visiting the link, I then copied it from the address bar, and pasting
> it here shows it with %5C
> https://en.wikipedia.org/wiki%5CFirefox
>
> I think this is WORKSFORME.
I followed the same steps with the same results.
However when I copy and then paste it in a text box(without inserting it into the url bar and pressing enter first) the address remains as is i.e. without %5C.
Reporter, could you please be more specific with the expected results? Do you want to manually write the URL https://en.wikipedia.org/wiki\Firefox in the url bar, and, upon pressing Enter, Firefox to change it into https://en.wikipedia.org/wiki%5CFirefox?
Comment 5•12 years ago
|
||
I see the same behavior as in comment 2 on today's Nightly.
Status: UNCONFIRMED → NEW
Component: Untriaged → Location Bar
Ever confirmed: true
Comment 6•10 years ago
|
||
Marking as duplicate of bug 1026938 which contains more context.
You need to log in
before you can comment on or make changes to this bug.
Description
•