From d4bd159e337db3898be671832c3da431016c5d22 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 22 Jun 2009 19:45:52 +0300 Subject: [PATCH] Remove vlc_UrlEncode --- include/vlc_url.h | 6 ------ modules/control/http/rpn.c | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) 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 ); -- 2.39.2