[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:09:45 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat May 29 19:06:58 2010 +0300| [61d42cc54138ab2b08c99c20771a39d55a371f59] | 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.
(cherry picked from commit c10f4954f2cdc12c6e593c8975be159415b53619)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=61d42cc54138ab2b08c99c20771a39d55a371f59
---

 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 13e889f..ce1348c 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