Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
33b920ed
Commit
33b920ed
authored
May 19, 2013
by
Sergey Lyubka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exported mg_url_encode()
parent
b5b234fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mongoose.c
mongoose.c
+2
-2
No files found.
mongoose.c
View file @
33b920ed
...
@@ -2548,7 +2548,7 @@ static int conn2(const char *host, int port, int use_ssl,
...
@@ -2548,7 +2548,7 @@ static int conn2(const char *host, int port, int use_ssl,
static
void
url_encode
(
const
char
*
src
,
char
*
dst
,
size_t
dst_len
)
{
void
mg_
url_encode
(
const
char
*
src
,
char
*
dst
,
size_t
dst_len
)
{
static
const
char
*
dont_escape
=
"._-$,;~()"
;
static
const
char
*
dont_escape
=
"._-$,;~()"
;
static
const
char
*
hex
=
"0123456789abcdef"
;
static
const
char
*
hex
=
"0123456789abcdef"
;
const
char
*
end
=
dst
+
dst_len
-
1
;
const
char
*
end
=
dst
+
dst_len
-
1
;
...
@@ -2591,7 +2591,7 @@ static void print_dir_entry(struct de *de) {
...
@@ -2591,7 +2591,7 @@ static void print_dir_entry(struct de *de) {
}
}
strftime
(
mod
,
sizeof
(
mod
),
"%d-%b-%Y %H:%M"
,
strftime
(
mod
,
sizeof
(
mod
),
"%d-%b-%Y %H:%M"
,
localtime
(
&
de
->
file
.
modification_time
));
localtime
(
&
de
->
file
.
modification_time
));
url_encode
(
de
->
file_name
,
href
,
sizeof
(
href
));
mg_
url_encode
(
de
->
file_name
,
href
,
sizeof
(
href
));
de
->
conn
->
num_bytes_sent
+=
mg_printf
(
de
->
conn
,
de
->
conn
->
num_bytes_sent
+=
mg_printf
(
de
->
conn
,
"<tr><td><a href=
\"
%s%s%s
\"
>%s%s</a></td>"
"<tr><td><a href=
\"
%s%s%s
\"
>%s%s</a></td>"
"<td> %s</td><td> %s</td></tr>
\n
"
,
"<td> %s</td><td> %s</td></tr>
\n
"
,
...
...
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