Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
dc4b750c
Commit
dc4b750c
authored
Jul 25, 2005
by
Rémi Denis-Courmont
Browse files
Don't reinvent the wheel^W^WANSI C
(or yet another "why make it complex when it can be simple")
parent
08c88156
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/http.c
View file @
dc4b750c
...
...
@@ -2853,18 +2853,6 @@ static void uri_decode_url_encoded( char *psz )
free
(
dup
);
}
static
int
char_in_str
(
char
c
,
const
char
*
str
)
{
while
(
*
str
)
{
if
(
c
==
*
str
)
return
1
;
str
++
;
}
return
0
;
}
static
void
uri_encode
(
const
char
*
from
,
char
*
to
,
size_t
to_len
)
{
static
const
char
hex
[]
=
"0123456789abcdef"
;
...
...
@@ -2875,7 +2863,7 @@ static void uri_encode( const char *from, char *to, size_t to_len )
{
*
to
++
=
'+'
;
}
else
if
(
isalnum
(
*
from
)
||
char_in_str
(
*
from
,
"$-_.+!*'(),/"
)
)
else
if
(
isalnum
(
*
from
)
||
strchr
(
"$-_.+!*'(),/"
,
*
from
)
)
{
*
to
++
=
*
from
;
}
...
...
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