[Mplayer-cvslog] CVS: main/libmpdemux url.c,1.15,1.16

Bertrand Baudet bertrand at mplayerhq.hu
Mon Sep 9 06:16:32 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv7205

Modified Files:
	url.c 
Log Message:
Applied patch from Gregory Kovriga <gkovriga at techunix.technion.ac.il>
- Url was not properly parsed if an @ was in the file path.


Index: url.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/url.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- url.c	23 Jun 2002 06:27:19 -0000	1.15
+++ url.c	9 Sep 2002 04:16:16 -0000	1.16
@@ -57,6 +57,11 @@
 
 	// 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;




More information about the MPlayer-cvslog mailing list