[vlc-commits] nfs: use vlc_UrlParseFixup

Thomas Guillem git at videolan.org
Wed Dec 6 10:13:27 CET 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Dec  5 09:50:43 2017 +0100| [dbcb44f4575702f2038c2b14a4448559f8670279] | committer: Thomas Guillem

nfs: use vlc_UrlParseFixup

Refs #18991

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=dbcb44f4575702f2038c2b14a4448559f8670279
---

 modules/access/nfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/nfs.c b/modules/access/nfs.c
index 1f32379094..92e44a2e4b 100644
--- a/modules/access/nfs.c
+++ b/modules/access/nfs.c
@@ -494,7 +494,7 @@ nfs_mount_cb(int i_status, struct nfs_context *p_nfs, void *p_data,
     if (i_status == -EACCES && p_sys->psz_url_decoded_slash == NULL)
     {
         vlc_url_t url;
-        vlc_UrlParse(&url, p_sys->psz_url_decoded);
+        vlc_UrlParseFixup(&url, p_access->psz_url);
         if (url.psz_path == NULL || url.psz_path[0] == '\0'
          || url.psz_path[strlen(url.psz_path) - 1] == '/'
          || (p_sys->psz_url_decoded_slash = NfsGetUrl(&url, "/")) == NULL)
@@ -635,7 +635,7 @@ Open(vlc_object_t *p_obj)
         goto error;
 
     /* Parse the encoded URL */
-    vlc_UrlParse(&p_sys->encoded_url, p_access->psz_url);
+    vlc_UrlParseFixup(&p_sys->encoded_url, p_access->psz_url);
     if (p_sys->encoded_url.psz_option)
     {
         if (strstr(p_sys->encoded_url.psz_option, "uid")



More information about the vlc-commits mailing list