mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05: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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user