]> git.sesse.net Git - vlc/commitdiff
Remove vlc_UrlEncode
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 22 Jun 2009 16:45:52 +0000 (19:45 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 22 Jun 2009 16:46:24 +0000 (19:46 +0300)
include/vlc_url.h
modules/control/http/rpn.c

index e5b29eba2364921cd6491800d40fea7115431a46..714a3f24da5f46047ae2985477c853c826dbab6b 100644 (file)
@@ -193,12 +193,6 @@ static inline void vlc_UrlClean( vlc_url_t *url )
     url->psz_buffer   = NULL;
 }
 
-static inline char *vlc_UrlEncode( const char *psz_url )
-{
-    /* FIXME: do not encode / : ? and & _when_ not needed */
-    return encode_URI_component( psz_url );
-}
-
 #include <ctype.h>
 
 /** Check whether a given string is not a valid URL and must hence be
index 43e72c5dbdeef192adf1640425c5730294c84c6b..bf29c17ddb2b8d6cb19113a1514a027a906d0802 100644 (file)
@@ -360,7 +360,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t  *vars,
         else if( !strcmp( s, "url_encode" ) )
         {
             char *url = SSPop( st );
-            char *value = vlc_UrlEncode( url );
+            char *value = encode_URI_component( url );
             free( url );
             SSPush( st, value );
             free( value );