From e305a7bf2001fffb9b88cb33dc7be01d9e61ca11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Wed, 15 Oct 2003 09:20:58 +0000 Subject: Michael's simply solution for using crazy named directries (with ':' character) in file MRLs. CVS patchset: 5524 CVS date: 2003/10/15 09:20:58 --- src/input/input_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/input_file.c b/src/input/input_file.c index 29690d30f..e82db252d 100644 --- a/src/input/input_file.c +++ b/src/input/input_file.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: input_file.c,v 1.82 2003/10/13 11:14:46 mroi Exp $ + * $Id: input_file.c,v 1.83 2003/10/15 09:20:58 valtri Exp $ */ #ifdef HAVE_CONFIG_H @@ -274,7 +274,7 @@ static input_plugin_t *file_class_get_instance (input_class_t *cls_gen, xine_str printf("file_class_get_instance\n"); #endif - if ((strncasecmp (mrl, "file:", 5)) && (strstr (mrl, ":/"))) { + if ((strncasecmp (mrl, "file:", 5)) && (strstr (mrl, ":/") < strchr(mrl, '/'))) { free (mrl); return NULL; } -- cgit v1.2.3