summaryrefslogtreecommitdiff
path: root/inc/init.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-02-05 18:04:49 +0100
committerAndreas Gohr <andi@splitbrain.org>2009-02-05 18:04:49 +0100
commitb9c4302b4c3beff2b77cbb858d0133d09a93bf63 (patch)
tree919875cbe6cf46ab2e9afb898093f79cfd70d114 /inc/init.php
parent3cd36d102e7362d0d548681f21154df643c1157a (diff)
downloadrpg-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/init.php')
-rw-r--r--inc/init.php2
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];