[vlc-commits] nfs: use vlc_UrlParseFixup

Thomas Guillem git at videolan.org
Thu Dec 7 09:27:54 CET 2017


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

nfs: use vlc_UrlParseFixup

Refs #18991

(cherry picked from commit dbcb44f4575702f2038c2b14a4448559f8670279)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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