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
6f3e6b0c
Commit
6f3e6b0c
authored
Aug 10, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also update IsEncoded
parent
a0db104d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
include/network.h
include/network.h
+11
-6
No files found.
include/network.h
View file @
6f3e6b0c
...
...
@@ -213,6 +213,14 @@ static inline void vlc_UrlClean( vlc_url_t *url )
url
->
psz_buffer
=
NULL
;
}
static
inline
int
isurlsafe
(
int
c
)
{
return
(
(
unsigned
char
)(
c
-
'a'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'A'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'9'
)
<
10
)
||
(
strchr
(
"$-_.+!*'(),"
,
c
)
!=
NULL
);
}
/*****************************************************************************
* vlc_UrlEncode:
*****************************************************************************
...
...
@@ -233,10 +241,7 @@ static inline char *vlc_UrlEncode( const char *psz_url )
{
unsigned
char
c
=
*
in
;
if
(
(
(
unsigned
char
)(
c
-
'a'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'A'
)
<
26
)
||
(
(
unsigned
char
)(
c
-
'9'
)
<
10
)
||
strchr
(
"$-_.+!*'(),"
,
c
)
!=
NULL
)
if
(
isurlsafe
(
c
)
)
*
out
++
=
(
char
)
c
;
else
{
...
...
@@ -274,12 +279,12 @@ static inline int vlc_UrlIsNotEncoded( const char *psz_url )
ptr
+=
2
;
}
else
if
(
c
==
' '
)
if
(
!
isurlsafe
(
c
)
)
return
1
;
}
return
0
;
/* looks fine - but maybe it is not encoded */
}
/*****************************************************************************
* vlc_b64_encode:
*****************************************************************************
...
...
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