Issue 25916: | Chrome converts every backslash in the URL into forward slashes | |
4 people starred this issue and may be notified of changes. | Back to list |
Sign in to add a comment
|
Chrome Version : 3.0.195.27 (Official Build 28507) URLs (if applicable) : http://texify.com/$x=\int{-b\pm\sqrt{b^2-4ac}$ Other browsers tested: Firefox Add OK or FAIL after other browsers where you have tested this issue: Safari 4: Firefox 3.x: OK IE 7: IE 8: What steps will reproduce the problem? 1. Copy the URL in the address bar 2. Click Go 3. What is the expected result? That url to be accessed What happens instead? It is accessing the URL with the backslashes converted to forward slashes. Please provide any additional information below. Attach a screenshot if possible.
Comment
1
by
dhw@chromium.org,
Oct 27, 2009
Oct 27, 2009
,
In fact, the above URL with all invalid characters encoded properly would be: http://texify.com/$x=%5Cint%7B-b%5Cpm%5Csqrt%7Bb%5E2-4ac%7D$
Oct 27, 2009
,
However, the other response is that there is one problem that is only in Chrome. When going to the fully encoded URL given in Comment 2, Chrome will update the Omnibox URL with the decoded characters. However, if you then highlight the Omnibox URL and Copy it, then Paste it again it shows as: http://texify.com/$x=/int%7B-b/pm/sqrt%7Bb%5E2-4ac%7D$ This problem is only in Chrome. Firefox will preserve the backslashes, and the other browsers do not redisplay the decoded characters but keep the character encodings. There is definitely a Chrome only bug that "Chrome converts every backslash in the URL into forward slashes".
Status: Untriaged
Labels: -Area-Misc Area-BrowserUI
Oct 27, 2009
,
Well, it was not my intention to report this exactly as a bug but as an "inconvenient feature" AFAIK that RFC does not force any browser to especifically replace backslashes with forward ones. IMHO "\" would be better replaced with "%5C" than with "/" in the same way as " " is replaced with "%20" or "{" is replaced with "%7B". I know that inserting Latex strings in URLs could sound weird. But "/" is not the same as "\" and maybe when a user writes "\" he means "\" ("%5C"). Concerning #3, I would not call that a bug. Every browser shows the "%20" replacements in the address bar, I don't see the point of hiding the slash replacements.
Oct 27, 2009
,
Comment #3 is definitely a bug. Every other browser except Firefox shows the encoding replacements (maintaining %5C for the backslashes) which is fine. Firefox shows the decoded characters but preserves the backslashes when copying and pasting, which is also fine. Chrome also shows the decoded characters but changes backslashes to forward slashes after copying and pasting, which is a bug.
Nov 3, 2009
,
(No comment was entered for this change.)
Status: Available
Labels: Mstone-X Feature-Omnibox
Dec 13, 2009
,
I've looked into it a bit - looks like it's converted by googleurl's path canonicalizer. In googleurl/src/url_canon_path.cc there's a line that silently converts backslashes to forward slashes. It won't be very hard to fix it (e.g. make it optional), but I'm not sure how I can change the code in googleurl.
Dec 18, 2009
,
Area-UI-Features label replaces Area-BrowserUI label
Labels: -Area-BrowserUI Area-UI-Features
Feb 17, 2010
,
(No comment was entered for this change.)
Labels: -Area-UI-Features Area-UI
Aug 30, 2010
,
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 45051 |
||||||||||||
► Sign in to add a comment |