[vlc-commits] commit: Partially fix previous commit: allow forward slash ( Rémi Denis-Courmont )
git at videolan.org
git at videolan.org
Sat May 29 18:08:35 CEST 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 29 19:06:58 2010 +0300| [c10f4954f2cdc12c6e593c8975be159415b53619] | committer: 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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c10f4954f2cdc12c6e593c8975be159415b53619
---
modules/access/http.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/http.c b/modules/access/http.c
index 1eb8e81..747eba0 100644
--- a/modules/access/http.c
+++ b/modules/access/http.c
@@ -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 */
}
More information about the vlc-commits
mailing list