From: RĂ©mi Denis-Courmont Date: Mon, 22 Jun 2009 16:45:52 +0000 (+0300) Subject: Remove vlc_UrlEncode X-Git-Tag: 1.1.0-ff~5301 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d4bd159e337db3898be671832c3da431016c5d22;p=vlc Remove vlc_UrlEncode --- diff --git a/include/vlc_url.h b/include/vlc_url.h index e5b29eba23..714a3f24da 100644 --- a/include/vlc_url.h +++ b/include/vlc_url.h @@ -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 /** Check whether a given string is not a valid URL and must hence be diff --git a/modules/control/http/rpn.c b/modules/control/http/rpn.c index 43e72c5dbd..bf29c17ddb 100644 --- a/modules/control/http/rpn.c +++ b/modules/control/http/rpn.c @@ -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 );