[libgepub/wip/cosimoc/fixes: 2/8] utils: correctly terminate base URI



commit c0a3423625079928022efd22b27b7838df9802cf
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sun Jun 12 15:10:47 2016 -0700

    utils: correctly terminate base URI
    
    Or we'll fail to resolve relative paths.

 libgepub/gepub-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgepub/gepub-utils.c b/libgepub/gepub-utils.c
index 3cc0dbc..1817f8b 100644
--- a/libgepub/gepub-utils.c
+++ b/libgepub/gepub-utils.c
@@ -39,7 +39,7 @@ set_epub_uri (xmlNode *node, gchar *path, gchar *tagname, gchar *attr)
     xmlChar *text = NULL;
 
     SoupURI *baseURI;
-    gchar *basepath = g_strdup_printf ("epub://%s", path);
+    gchar *basepath = g_strdup_printf ("epub://%s/", path);
 
     baseURI = soup_uri_new (basepath);
     g_free (basepath);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]