On Fri, Mar 04, 2005 at 12:53:26PM +0200, marlon@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@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@word". Apart from that, there is a "could not resolve" error as the "nice.site.com" is mislooked as "word@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