]> git.sesse.net Git - vlc/commitdiff
Partially fix previous commit: allow forward slash
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 29 May 2010 16:06:58 +0000 (19:06 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 29 May 2010 16:08:23 +0000 (19:08 +0300)
In theory, we should check that there is only one slash per token, but
it is not really dangerous.

modules/access/http.c

index 1eb8e81b842f1e346ecf68d5c41000222dc9378a..747eba0675886bedc68ecb8786135b9361c5ed68 100644 (file)
@@ -350,7 +350,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access,
     for( char *p = p_sys->psz_user_agent; *p; p++ )
     {
         uint8_t c = *p;
-        if( c < 32 || strchr( "()<>@,;:\\\"/[]?={}", c ) )
+        if( c < 32 || strchr( "()<>@,;:\\\"[]?={}", c ) )
             *p = '_'; /* remove potentially harmful characters */
     }