]> git.sesse.net Git - vlc/commitdiff
Allow the '-' character in an access' name (fixes parsing of input "http/shout-winamp...
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 17 Aug 2007 20:51:02 +0000 (20:51 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 17 Aug 2007 20:51:02 +0000 (20:51 +0000)
src/input/input.c

index 0b990c8e7fdbbec27fb2dc03bdd374b9c2d7dac8..2a8a53746d6dd9aa3563b43c25b0b5959f6fde53 100644 (file)
@@ -2582,7 +2582,7 @@ static inline vlc_bool_t IsValidAccess( const char *psz )
         if( c == ':' )
             return VLC_TRUE;
 
-        if( ( !isascii( c ) || !isalnum( c ) ) && ( c != '/' ) )
+        if( ( !isascii( c ) || !isalnum( c ) ) && c != '-' && ( c != '/' ) )
             return VLC_FALSE;
         psz++;
     }