Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
5d974e62
Commit
5d974e62
authored
Oct 30, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup directory URI encoding
parent
691503a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
modules/access/directory.c
modules/access/directory.c
+8
-3
No files found.
modules/access/directory.c
View file @
5d974e62
...
...
@@ -343,8 +343,8 @@ static block_t *Block (access_t *p_access)
return
NULL
;
}
/* Skip current
and parent
directories */
if
(
entry
[
0
]
==
'.'
)
/* Skip current
, parent and hidden
directories */
if
(
entry
[
0
]
==
'.'
)
return
NULL
;
/* Handle recursion */
if
(
p_sys
->
mode
!=
MODE_COLLAPSE
)
...
...
@@ -360,7 +360,12 @@ static block_t *Block (access_t *p_access)
{
sub
->
parent
=
current
;
sub
->
handle
=
handle
;
sub
->
uri
=
encode_path
(
sub
->
path
);
char
*
encoded
=
encode_URI_component
(
entry
);
if
((
encoded
==
NULL
)
||
(
asprintf
(
&
sub
->
uri
,
"%s/%s"
,
current
->
uri
,
encoded
)
==
-
1
))
sub
->
uri
=
NULL
;
free
(
encoded
);
if
((
p_sys
->
mode
==
MODE_NONE
)
||
fstat
(
dirfd
(
handle
),
&
sub
->
st
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment