diff options
author | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-09 04:16:16 +0000 |
---|---|---|
committer | bertrand <bertrand@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-09-09 04:16:16 +0000 |
commit | 75ed70c8654dd7f4f5500f99afa2edb155d0442e (patch) | |
tree | b600cb813e25284e0ca2d71b4ba403f5c7cb277d /libmpdemux | |
parent | cd8540ab8cdc8cb314c7ca3ac9107b65577e0fcf (diff) | |
download | mpv-75ed70c8654dd7f4f5500f99afa2edb155d0442e.tar.bz2 mpv-75ed70c8654dd7f4f5500f99afa2edb155d0442e.tar.xz |
Applied patch from Gregory Kovriga <gkovriga@techunix.technion.ac.il>
- 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
Diffstat (limited to 'libmpdemux')
-rw-r--r-- | libmpdemux/url.c | 5 |
1 files changed, 5 insertions, 0 deletions
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<ptr2 ) { + // it isn't really a username but rather a part of the path + ptr2 = NULL; + } if( ptr2!=NULL ) { // We got something, at least a username... int len = ptr2-ptr1; |