From fd30743a6f0edd8e71b6b7ebe1f181fa59008778 Mon Sep 17 00:00:00 2001 From: "timm%netscape.com" Date: Mon, 20 Jul 1998 21:04:08 +0000 Subject: [PATCH] fix path to routine to append last slash --- cmd/dialup/as_html/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/dialup/as_html/util.js b/cmd/dialup/as_html/util.js index bc5dbcc8bbb1..d36955b2fe99 100644 --- a/cmd/dialup/as_html/util.js +++ b/cmd/dialup/as_html/util.js @@ -92,15 +92,15 @@ function getFolder( window ) bar = path.indexOf( '|' ); if ( slash < bar ) - drive = path.substring( slash, bar ); + drive = path.substring( slash + 1, bar ); else drive = path.substring( bar - 1, bar ); - + path = path.substring( bar + 1, path.lastIndexOf( '/' ) + 1 ); } var pathArray = path.split( "/" ); - path = pathArray.join( "\\" ); + path = pathArray.join( "\\" ) + "\\"; //debug( "drive: " + drive + " path: " + path );