From b9c4302b4c3beff2b77cbb858d0133d09a93bf63 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Thu, 5 Feb 2009 18:04:49 +0100 Subject: fixed fullpath() for certain Windows setups Ignore-this: 7059284786889a3ead12f5a4b3873bdf darcs-hash:20090205170449-7ad00-63f9459819a355abc7a154e07b487d8431097614.gz --- inc/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index f577188e8..b64a6611a 100644 --- a/inc/init.php +++ b/inc/init.php @@ -533,7 +533,7 @@ function fullpath($path,$exists=false){ }elseif($iswin){ // match drive letter and UNC paths if(preg_match('!^([a-zA-z]:)(.*)!',$path,$match)){ - $root = $match[1]; + $root = $match[1].'/'; $path = $match[2]; }else if(preg_match('!^(\\\\\\\\[^\\\\/]+\\\\[^\\\\/]+[\\\\/])(.*)!',$path,$match)){ $root = $match[1]; -- cgit v1.2.3