midori_view_save_source returns uri for local files

Bug #1060270 reported by gue5t gue5t
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Midori Web Browser
Fix Released

Bug Description

Commit 47df922547169395f60ef72676df3a1b91e45f2d (<http://git.xfce.org/apps/midori/commit/?id=47df922547169395f60ef72676df3a1b91e45f2d>) added the following logic to midori_view_save_source:

    if (g_str_has_prefix (uri, "file:///"))
        return g_strdup (uri);

This causes it to return a uri, which cannot be opened by editors that expect a filename; it also disagrees with other logic (and the return-value comment) which explicitly returns a filename.

Revision history for this message
Christian Dywan (kalikiana) wrote :

Pushed a fix and a test case. Thanks for the report!

Changed in midori:
status: New → Fix Committed
Changed in midori:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers