Closed
Bug 327743
Opened 20 years ago
Closed 20 years ago
Problems using dir=./. in URI
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: lito, Unassigned)
References
(
URL
)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8) Gecko/20051111 Firefox/1.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8) Gecko/20051111 Firefox/1.5
Hi, when I append dir=./. to an URI, the page load without stylesheet...
Normal page: http://www.w3.org/Style/CSS/
Error page: http://www.w3.org/Style/CSS/?dir=./.
Normal page: http://www.litoweb.net/pfn2/
Error page: http://www.litoweb.net/pfn2/dir=./.
Why?, I don't know.
Reproducible: Sometimes
Steps to Reproduce:
1. Write http://www.w3.org/Style/CSS/ to see the page fine
2. Write http://www.w3.org/Style/CSS/?dir=./. to see the page bad
I'm using Ubuntu Linux 5.10
I'm code an application that use dir var in URI and sometimes with some dir value, the web crash.
The urls in the error examples don't link to ?dir=./. they are linking to ?dir=./ in the a href
please make sure that the url that you try is ?dir=./.
Comment 2•20 years ago
|
||
This does cause a problem, but then the URL that causes the problem is invalid. A / should be represented as %2f in the query string, so I'm not sure if this is an actual bug or something that cant be helped when using invalid urls.
Comment 3•20 years ago
|
||
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060218 Firefox/1.6a1 ID:2006021813
Confirmed.
After some testing, I can say that this only appears to manifest itself if the "?dir=./." is appended to a subdirectory (not the host alone).
I'd say this was invalid.
Comment 4•20 years ago
|
||
The stylesheets use relative links in the source. Given the dir=./. URL, the browser attempts to load, e.g.
http://www.w3.org/Style/CSS../threepart-f.css
whereas given the normal URL, the brower attempts to load
http://www.w3.org/Style/threepart-f.css
I don't feel like going through the spec to see if this is right, though.
Also, the "dir=" isn't required, it works just the same with ?blah=./. or even just ?./.
Component: General → Networking
Product: Firefox → Core
Version: unspecified → Trunk
Comment 5•20 years ago
|
||
If you can come up with a compelling reason to make such invalid URLs work, please re-open this bug report.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•