Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
mongoose
Commits
e9d79b13
Commit
e9d79b13
authored
Nov 29, 2015
by
Sergey Lyubka
Committed by
Sergey Lyubka
Nov 30, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add documentation for the mongoose binary
PUBLISHED_FROM=71a01298c9bbff9a748ea33e0d148d549e5e6437
parent
7951dac9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
mongoose.c
mongoose.c
+7
-0
No files found.
mongoose.c
View file @
e9d79b13
...
...
@@ -5016,6 +5016,13 @@ static int is_file_hidden(const char *path,
const
struct
mg_serve_http_opts
*
opts
)
{
const
char
*
p1
=
opts
->
per_directory_auth_file
;
const
char
*
p2
=
opts
->
hidden_file_pattern
;
/* Strip directory path from the file name */
const
char
*
pdir
=
strrchr
(
path
,
DIRSEP
);
if
(
pdir
!=
NULL
)
{
path
=
pdir
+
1
;
}
return
!
strcmp
(
path
,
"."
)
||
!
strcmp
(
path
,
".."
)
||
(
p1
!=
NULL
&&
!
strcmp
(
path
,
p1
))
||
(
p2
!=
NULL
&&
mg_match_prefix
(
p2
,
strlen
(
p2
),
path
)
>
0
);
...
...
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