[gnome-software/wip/mcrha/css-absolute-url2] Misc: Use absolute URL in CSS (part 2)



commit 3e4cd25222d62584471833662d9390374f0ec1e4
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 1 14:58:10 2021 +0100

    Misc: Use absolute URL in CSS (part 2)
    
    Missed one place in commit 4ce749cecf9ef544d2047758b093ed0c0efad89e.
    The changes from the commit can be reverted, due to the way the replacement
    in the CSS works.
    
    Related to https://gitlab.gnome.org/GNOME/gtk/-/issues/4373

 lib/gs-plugin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index c964e4931..b75220f1e 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -1285,7 +1285,7 @@ gs_plugin_download_rewrite_resource (GsPlugin *plugin,
                                                                           error);
                        if (cachefn == NULL)
                                return NULL;
-                       g_string_append_printf (str, "'%s'", cachefn);
+                       g_string_append_printf (str, "'file://%s'", cachefn);
                        g_string_append_c (str, resource[i]);
                        start = 0;
                }


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