Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dc4b750c
Commit
dc4b750c
authored
Jul 25, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
modules/control/http.c
modules/control/http.c
+1
-13
No files found.
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