mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix html temp-file URI.
The file path must start with a / anyway so we were getting URIs that looked like "file:////foo/bar".
This commit is contained in:
parent
789a28dd5b
commit
97b09b5df5
@ -764,7 +764,7 @@ impl_webkit_show_data( GncHtml* self, const gchar* data, int datalen )
|
||||
fd = g_mkstemp( filename );
|
||||
impl_webkit_export_to_file( self, filename );
|
||||
close( fd );
|
||||
uri = g_strdup_printf( "file:///%s", filename );
|
||||
uri = g_strdup_printf( "file://%s", filename );
|
||||
g_free(filename);
|
||||
DEBUG("Loading uri '%s'", uri);
|
||||
webkit_web_view_load_uri( priv->web_view, uri );
|
||||
|
@ -742,7 +742,7 @@ impl_webkit_show_data( GncHtml* self, const gchar* data, int datalen )
|
||||
fd = g_mkstemp( filename );
|
||||
impl_webkit_export_to_file( self, filename );
|
||||
close( fd );
|
||||
uri = g_strdup_printf( "file:///%s", filename );
|
||||
uri = g_strdup_printf( "file://%s", filename );
|
||||
g_free(filename);
|
||||
DEBUG("Loading uri '%s'", uri);
|
||||
webkit_web_view_load_uri( priv->web_view, uri );
|
||||
|
Loading…
Reference in New Issue
Block a user