changeset 34129:a7d1a3c3bc74

Prevent adding a base path wrongly. For ports with DOS style paths, X:/ at the beginning is allowed and not unusal. It must be treated as an absolute path.
author ib
date Thu, 20 Oct 2011 11:15:30 +0000
parents 3a0badbaab9c
children b0c63b098b6b
files playtreeparser.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/playtreeparser.c	Thu Oct 20 11:12:41 2011 +0000
+++ b/playtreeparser.c	Thu Oct 20 11:15:30 2011 +0000
@@ -838,6 +838,8 @@
     if(fl <= 0 || strstr(pt->files[i],"://") || (pt->files[i][0] == '/')
 #if HAVE_DOS_PATHS
                || (strstr(pt->files[i],":\\") == pt->files[i] + 1)
+               // the X:/ format is allowed as well
+               || (strstr(pt->files[i],":/") == pt->files[i] + 1)
 #endif
                                                                         )
       continue;