Bug 103054 - [Qt] Correct extensions on preferredFilename
Summary: [Qt] Correct extensions on preferredFilename
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Allan Sandfeld Jensen
URL:
Keywords:
Depends on: 102667
Blocks:
  Show dependency treegraph
 
Reported: 2012-11-22 04:37 PST by Allan Sandfeld Jensen
Modified: 2012-11-22 05:51 PST (History)
1 user (show)

See Also:


Attachments
Patch (4.23 KB, patch)
2012-11-22 04:47 PST, Allan Sandfeld Jensen
hausmann: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld Jensen 2012-11-22 04:37:11 PST
When downloading files we currently save using the original extension, but these extensions can often be wrong, either lacking or ending in .php. We can fix this by checking if the extension is valid and added add a valid one or correct the existing in the preferredFilename.
Comment 1 Allan Sandfeld Jensen 2012-11-22 04:47:15 PST
Created attachment 175647 [details]
Patch
Comment 2 Simon Hausmann 2012-11-22 04:58:55 PST
Is there a http test for this, btw? Strong feeling there might :)
Comment 3 Allan Sandfeld Jensen 2012-11-22 05:51:14 PST
Committed r135511: <http://trac.webkit.org/changeset/135511>