Commit d4bd159e authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove vlc_UrlEncode

parent 2203f838
...@@ -193,12 +193,6 @@ static inline void vlc_UrlClean( vlc_url_t *url ) ...@@ -193,12 +193,6 @@ static inline void vlc_UrlClean( vlc_url_t *url )
url->psz_buffer = NULL; 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> #include <ctype.h>
/** Check whether a given string is not a valid URL and must hence be /** Check whether a given string is not a valid URL and must hence be
......
...@@ -360,7 +360,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars, ...@@ -360,7 +360,7 @@ void EvaluateRPN( intf_thread_t *p_intf, mvar_t *vars,
else if( !strcmp( s, "url_encode" ) ) else if( !strcmp( s, "url_encode" ) )
{ {
char *url = SSPop( st ); char *url = SSPop( st );
char *value = vlc_UrlEncode( url ); char *value = encode_URI_component( url );
free( url ); free( url );
SSPush( st, value ); SSPush( st, value );
free( value ); free( value );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment