From 75ed70c8654dd7f4f5500f99afa2edb155d0442e Mon Sep 17 00:00:00 2001 From: bertrand Date: Mon, 9 Sep 2002 04:16:16 +0000 Subject: Applied patch from Gregory Kovriga - Url was not properly parsed if an @ was in the file path. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7331 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/url.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpdemux/url.c b/libmpdemux/url.c index b885de0657..5df6a0a9d9 100644 --- a/libmpdemux/url.c +++ b/libmpdemux/url.c @@ -57,6 +57,11 @@ url_new(char* url) { // check if a username:password is given ptr2 = strstr(ptr1, "@"); + ptr3 = strstr(ptr1, "/"); + if( ptr3!=NULL && ptr3