Commit dbcb44f4 authored by Thomas Guillem's avatar Thomas Guillem

nfs: use vlc_UrlParseFixup

Refs #18991
parent 84c6754f
...@@ -494,7 +494,7 @@ nfs_mount_cb(int i_status, struct nfs_context *p_nfs, void *p_data, ...@@ -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) if (i_status == -EACCES && p_sys->psz_url_decoded_slash == NULL)
{ {
vlc_url_t url; 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' if (url.psz_path == NULL || url.psz_path[0] == '\0'
|| url.psz_path[strlen(url.psz_path) - 1] == '/' || url.psz_path[strlen(url.psz_path) - 1] == '/'
|| (p_sys->psz_url_decoded_slash = NfsGetUrl(&url, "/")) == NULL) || (p_sys->psz_url_decoded_slash = NfsGetUrl(&url, "/")) == NULL)
...@@ -635,7 +635,7 @@ Open(vlc_object_t *p_obj) ...@@ -635,7 +635,7 @@ Open(vlc_object_t *p_obj)
goto error; goto error;
/* Parse the encoded URL */ /* 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 (p_sys->encoded_url.psz_option)
{ {
if (strstr(p_sys->encoded_url.psz_option, "uid") if (strstr(p_sys->encoded_url.psz_option, "uid")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment