Commit c10f4954 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Partially fix previous commit: allow forward slash

In theory, we should check that there is only one slash per token, but
it is not really dangerous.
parent 2656ae56
...@@ -350,7 +350,7 @@ static int OpenWithCookies( vlc_object_t *p_this, const char *psz_access, ...@@ -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++ ) for( char *p = p_sys->psz_user_agent; *p; p++ )
{ {
uint8_t c = *p; uint8_t c = *p;
if( c < 32 || strchr( "()<>@,;:\\\"/[]?={}", c ) ) if( c < 32 || strchr( "()<>@,;:\\\"[]?={}", c ) )
*p = '_'; /* remove potentially harmful characters */ *p = '_'; /* remove potentially harmful characters */
} }
......
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