Closed Bug 31422 Opened 25 years ago Closed 25 years ago

mozilla replaces spaces with "%20" when saving a file with spaces in the name

Categories

(Core Graveyard :: File Handling, defect, P2)

x86
Windows NT

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: jcarpenter0524, Assigned: law)

References

()

Details

Overview Description: mozilla replaces spaces with "%20" when saving a file with spaces in the name Steps to Reproduce: - Go to the above (internal only) site, or find one that has downloadable files with spaces in the names, or copy the code below and make your own - Right click on the file and select "save link as" - The default text has a %20 in place of every space. The code from the above page: <HTML><HEAD><TITLE>test</TITLE></HEAD> <BODY> <IMG SRC="sound2.gif" ALT="[SND]"> <A HREF="SP - Blame Canada.mp3">Blame Canada.mp3</a> </BODY> </HTML> Actual Results: SP%20-%20Blame%20Canada.mp3 Expected Results: SP - Blame Canada.mp3 Build Date & Platform Bug Found: 2000031009-M15 Additional Builds and Platforms Tested On: Linux - inserts underscores as it should for that platform Mac - can't get a right click menu...
Severity: normal → major
Priority: P3 → P2
stealing bug from sujay and making myself qa contact
QA Contact: sujay → janc
Nothing to do with dom to text conversion. Sounds like for some reason someone is doing url escaping on the file name. Law?
Assignee: akkana → law
Component: DOM to Text Conversion → XP Utilities
janc, d'you see this on other platforms (mac, linux), or is it only winNT?
Status: NEW → ASSIGNED
This is likely occurring on all platforms. The method used to get the filename from the URL escapes the name and there's no way to avoid that with that particular method. However, there are other methods that enable one to pull out the pieces of the name unescaped and put them together to come up with the full name+extension. I'll give that a try.
I found an easier fix. I just use nsUnescape() from nsEscape.h.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Verified 2000-07-13-08-M17 : Linux 2000-07-13-09-M17 : WinNT & Win98 Can't check on mac as contextual menus are not working.
Status: RESOLVED → VERIFIED
janc, context menus work if you click+Control key on the mac. the long-click means has been broken...forever. ;-P
Component: XP Utilities → File Handling
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.