Commit da8a2f93 authored by Antoine Cellerier's avatar Antoine Cellerier

Allow the '-' character in an access' name (fixes parsing of input...

Allow the '-' character in an access' name (fixes parsing of input "http/shout-winamp://www.shoutcast.com/sbin/newxml.phtml").
parent 0aa0fe72
...@@ -2582,7 +2582,7 @@ static inline vlc_bool_t IsValidAccess( const char *psz ) ...@@ -2582,7 +2582,7 @@ static inline vlc_bool_t IsValidAccess( const char *psz )
if( c == ':' ) if( c == ':' )
return VLC_TRUE; return VLC_TRUE;
if( ( !isascii( c ) || !isalnum( c ) ) && ( c != '/' ) ) if( ( !isascii( c ) || !isalnum( c ) ) && c != '-' && ( c != '/' ) )
return VLC_FALSE; return VLC_FALSE;
psz++; psz++;
} }
......
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