Closed
Bug 412428
Opened 17 years ago
Closed 15 years ago
";" in URL of file name, directory name, extention should be encoded at directory list
Categories
(Core Graveyard :: File Handling, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 448141
People
(Reporter: masa141421356, Unassigned)
Details
Attachments
(2 obsolete files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Build Identifier:
";" in URL of file/diorectory/extention name should be encoded as %3B in directory list.
Reproducible: Always
Steps to Reproduce:
1.Create file "a;b.html" to some direcotory
2.Show its directory list using file:// scheme
3.clink link to "a;b.html"
Actual Results:
It does not work.
Expected Results:
It should work.
It may not be needed to escape ";" in other schemes (e.g. ftp, gopher, etc.).
But I cannot test on my PC.
Reporter | ||
Comment 1•17 years ago
|
||
I think, at Windows, MacOSX, UNIX and OS2, nsIndexedToHTML should replace ";" to "%3b" like net_GetURLSpecFromFile in nsURLHelperWin.cpp , nsURLHelperOSX.cpp , nsURLHelperUnix.cpp and nsURLHelperOS2.cpp.
Reporter | ||
Comment 2•17 years ago
|
||
According to nsURLHelperXXXX.cpp (nsURLHeplerWin.cpp, nsURLHeplerOSX.cpp, nsURLHeplerUnix.cpp and nsURLHeplerOS2.cpp), Windows, MacOSX, Unix and OS2 requeres to escape ";".
But I don't know other OS need to escape ";" or not. (e.g. BeOS)
If All supported OS needs to escape ";"
+#if defined(XP_WIN) || defined(XP_MACOSX) || defined(XP_UNIX) || defined(XP_OS2)
+ semiColonEscapeNeeded = PR_TRUE;
+#endif
can be simplified to
+ semiColonEscapeNeeded = PR_TRUE;
Attachment #311535 -
Flags: superreview?
Attachment #311535 -
Flags: review?
Reporter | ||
Updated•17 years ago
|
Attachment #311535 -
Attachment description: Patch rv 1.0 → Patch rv 1.0 for Trunk
Reporter | ||
Updated•17 years ago
|
Attachment #311535 -
Flags: review? → review?(bzbarsky)
Comment 3•17 years ago
|
||
I'm not going to be able to review this until June.
Reporter | ||
Comment 4•17 years ago
|
||
1.Deleted escapedEllipsis (It is used in patch of bug 411854, not for this bug).
2.Renamed semiColonEscapeNeeded to mSemiColonEscapeNeeded (unify naming style)
Attachment #311535 -
Attachment is obsolete: true
Attachment #311794 -
Flags: superreview?
Attachment #311794 -
Flags: review?(mano)
Attachment #311535 -
Flags: superreview?
Attachment #311535 -
Flags: review?(bzbarsky)
Comment 5•17 years ago
|
||
> But I don't know other OS need to escape ";" or not. (e.g. BeOS)
>
> If All supported OS needs to escape ";"
>
Here is my attemt to test problem in BeOS:
http://community.livejournal.com/bezilla/279851.html?replyto=1427755
Reporter | ||
Updated•15 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Updated•15 years ago
|
Attachment #311794 -
Flags: superreview?
Attachment #311794 -
Flags: review?(mano)
Reporter | ||
Comment 7•15 years ago
|
||
Comment on attachment 311794 [details] [diff] [review]
Patch rv.1.1
this bug is already fixed by bug 448141.
Reporter | ||
Updated•15 years ago
|
Attachment #311794 -
Attachment is obsolete: true
Assignee | ||
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•