diff options
author | Ondrej Holy <oholy@redhat.com> | 2022-05-02 11:04:36 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2022-05-03 07:52:07 +0000 |
commit | 0d1da12484861a103baba97587cb9d8f7ac952ae (patch) | |
tree | 9d7d51579f020d3c0336bbf9ff83e92586b54c3e | |
parent | 0c89894f3db3b8f1baba55329720bc12d49d1709 (diff) | |
download | gvfs-0d1da12484861a103baba97587cb9d8f7ac952ae.tar.gz |
http: Unescape prefix to fix handling of encoded URIs
Currently, the HTTP backend fails with the "The specified location is
not mounted" error for URIs with path containing escaped characters.
This is because the mount prefix is not unescaped. This is unfortunatelly
another libsoup3 port regression. Let's correctly unescape the prefix to
make that work again.
Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/623
-rw-r--r-- | daemon/gvfsbackendhttp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c index 0f01d213..e8e44004 100644 --- a/daemon/gvfsbackendhttp.c +++ b/daemon/gvfsbackendhttp.c @@ -307,7 +307,7 @@ try_mount (GVfsBackend *backend, real_mount_spec = g_mount_spec_new ("http"); g_mount_spec_set (real_mount_spec, "uri", uri_str); - path = g_uri_get_path (uri); + path = g_uri_unescape_string (g_uri_get_path (uri), "/"); if (path[0]) { g_free (real_mount_spec->mount_prefix); |