Closed Bug 270038 Opened 20 years ago Closed 20 years ago

save as "webpage, complete" doesn't retain original image file names with dots

Categories

(Core Graveyard :: File Handling, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: celebyte, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041006 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041006 Firefox/0.10.1

Saving any html file with image file names containing dots in the middle, will
strip every character after the first dot.

For example, of the following file "test.html":

<html><head><title>mozilla</title></head>
<body>
<img src="pic.hello.gif" /><br />
<img src="pic.some.thing.gif" /><br />
<img src="pic.1011.3533.gif" /><br />
<img src="pic.abc.343.3f3f.gif" /><br />
</body></html>

Reproducible: Always
Steps to Reproduce:
1. open any html file with image names that have dots
2. File -> Save Page As...
3. Select format: "Web Page, complete"

Actual Results:  
<img src="test_files/pic.gif"><br>
<img src="test_files/pic_002.gif"><br>
<img src="test_files/pic_003.gif"><br>
<img src="test_files/pic_004.gif"><br>

Expected Results:  
<img src="test_files/pic.some.thing.gif"><br>
<img src="test_files/pic.1011.3533.gif"><br>
<img src="test_files/pic.abc.343.3f3f.gif"><br>
WFM, Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0.

Tested with an offline copy of test.html.
Worksforme as well, in a current Linux trunk build.  Marking so, but please
reopen if this is a problem in a recent build...
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.