git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c9dbd3
)
check scheme part in uri with checking :// instead of just checking :
author
Ilkka Ollakka
<ileoo@videolan.org>
Mon, 29 Dec 2008 19:38:51 +0000
(21:38 +0200)
committer
Ilkka Ollakka
<ileoo@videolan.org>
Mon, 29 Dec 2008 20:10:27 +0000
(22:10 +0200)
should fix #2218, thou getURI should return valid uri anyway. So this
is kinda hack anyway.
modules/misc/playlist/xspf.c
patch
|
blob
|
history
diff --git
a/modules/misc/playlist/xspf.c
b/modules/misc/playlist/xspf.c
index
946d141
..
a40ba3a
100644
(file)
--- a/
modules/misc/playlist/xspf.c
+++ b/
modules/misc/playlist/xspf.c
@@
-316,9
+316,9
@@
static char *assertUTF8URI( char *psz_name )
return NULL;
/** \todo check for a valid scheme part preceding the colon */
- size_t i_delim = strcspn( psz_s, ":" );
- if( i_delim != strlen( psz_s ) )
+ if( strstr( psz_s, "://") != NULL )
{
+ size_t i_delim = strcspn( psz_s, ":" );
i_delim++; /* skip the ':' */
strncpy( psz_ret, psz_s, i_delim );
psz_d = psz_ret + i_delim;