Commit 7a2a1077 authored by Laurent Aimar's avatar Laurent Aimar

Fixed IsValidAccess...

parent fae9a4cb
......@@ -2540,19 +2540,19 @@ static void InputUpdateMeta( input_thread_t *p_input, vlc_meta_t *p_meta )
static inline vlc_bool_t IsValidAccess( const char *psz )
{
unsigned char c;
char c;
while( ( c = *psz ) != '\0' )
{
if( c == ':' )
return VLC_TRUE;
if( !isascii( c ) || !isalnum( c ) || ( c != '/' ) )
if( !isascii( c ) && !isalnum( c ) && c != '/' )
return VLC_FALSE;
psz++;
}
return VLC_FALSE; /* should not happen though */
/* should not happen though */
return VLC_FALSE;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment