summaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rw-r--r--backend/epub/epub-document.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index fe483a68..c0fa275b 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -352,7 +352,11 @@ epub_document_save (EvDocument *document,
{
EpubDocument *epub_document = EPUB_DOCUMENT (document);
- return ev_xfer_uri_simple (epub_document->archivename, uri, error);
+ gchar *source_uri = g_filename_to_uri (epub_document->archivename, NULL, error);
+ if (source_uri == NULL)
+ return FALSE;
+
+ return ev_xfer_uri_simple (source_uri, uri, error);
}
static int