diff options
author | Andreas Gohr <andi@splitbrain.org> | 2009-02-05 18:04:49 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2009-02-05 18:04:49 +0100 |
commit | b9c4302b4c3beff2b77cbb858d0133d09a93bf63 (patch) | |
tree | 919875cbe6cf46ab2e9afb898093f79cfd70d114 /inc | |
parent | 3cd36d102e7362d0d548681f21154df643c1157a (diff) | |
download | rpg-b9c4302b4c3beff2b77cbb858d0133d09a93bf63.tar.gz rpg-b9c4302b4c3beff2b77cbb858d0133d09a93bf63.tar.bz2 |
fixed fullpath() for certain Windows setups
Ignore-this: 7059284786889a3ead12f5a4b3873bdf
darcs-hash:20090205170449-7ad00-63f9459819a355abc7a154e07b487d8431097614.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |