* (even if they are not URL-safe), nor URL-safe characters.
* We still encode some of them because of Microsoft's crap browser.
*/
- || ( strchr( "/:.[]@&?-_.", c ) != NULL );
+ || ( strchr( "-_.", c ) != NULL );
}
/*****************************************************************************
{
access_t *p_access = (access_t*)p_this;
access_sys_t *p_sys;
- char *psz;
+ char *psz, *p;
/* Set up p_access */
p_access->pf_read = Read;
p_sys->psz_icy_title = NULL;
p_sys->i_remaining = 0;
- /* Parse URI */
- if( vlc_UrlIsNotEncoded( p_access->psz_path ) )
- {
- psz = vlc_UrlEncode( p_access->psz_path );
- if( psz == NULL )
- {
- free( p_sys );
- return VLC_ENOMEM;
- }
-
- vlc_UrlParse( &p_sys->url, psz, 0 );
- free( psz );
- }
- else
- vlc_UrlParse( &p_sys->url, p_access->psz_path, 0 );
+ /* Parse URI - remove spaces */
+ p = psz = strdup( p_access->psz_path );
+ while( (p = strchr( p, ' ' )) != NULL )
+ *p = '+';
+ vlc_UrlParse( &p_sys->url, psz, 0 );
+ free( psz );
if( p_sys->url.psz_host == NULL || *p_sys->url.psz_host == '\0' )
{