[MPlayer-advusers] MPlayer does not escape symbols in rtsp URLs (possible bug)

D Richard Felker III dalias at aerifal.cx
Fri Mar 4 16:40:35 CET 2005


On Fri, Mar 04, 2005 at 12:53:26PM +0200, marlon at freemail.gr wrote:
> Hello.
> 
> Let's have an rtsp stream: rtsp://nice.site.com/file
> 
> The stream requires username and password so the cmd line
> becomes:
> 
> mplayer rtsp://username:password@nice.site.com/file
> 
> Now if the password includes the "@" symbol ("pass at word")
> the cmd line becomes:
> 
> mplayer rtsp://username:pass@word@nice.site.com/file
> 
> Bue that causes error due to the fact that the password is parsed
> as "pass" and not "pass at word". Apart from that, there is a "could
> not resolve" error as the "nice.site.com" is mislooked as
> "word at nice.site.com".
> 
> Escaping the first "@" with "%40" or "\@" doesn't work either.
> 
> Regards.

IMO the solution is to look for the last @ before the first /, instead
of the first @. Escaping should not be necessary here.

Rich




More information about the MPlayer-advusers mailing list