Closed Bug 916466 Opened 12 years ago Closed 10 years ago

Backslashes are accepted as valid characters in URLs

Categories

(Firefox :: Address Bar, defect)

21 Branch
defect
Not set
normal

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
OS: Mac OS X → All
Hardware: x86 → All
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.
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.
(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.
Blocks: url
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?
I see the same behavior as in comment 2 on today's Nightly.
Status: UNCONFIRMED → NEW
Component: Untriaged → Location Bar
Ever confirmed: true
Marking as duplicate of bug 1026938 which contains more context.
No longer blocks: url
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.