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)

x86
Windows XP
defect
Not set
normal

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.
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.
Attached patch Patch rv 1.0 for Trunk (obsolete) — Splinter Review
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?
Attachment #311535 - Attachment description: Patch rv 1.0 → Patch rv 1.0 for Trunk
Attachment #311535 - Flags: review? → review?(bzbarsky)
I'm not going to be able to review this until June.
Attached patch Patch rv.1.1 (obsolete) — Splinter Review
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)
> 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
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
Attachment #311794 - Flags: superreview?
Attachment #311794 - Flags: review?(mano)
Comment on attachment 311794 [details] [diff] [review] Patch rv.1.1 this bug is already fixed by bug 448141.
Attachment #311794 - Attachment is obsolete: true
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: