diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-09-30 20:42:50 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-09-30 20:42:50 +0200 |
commit | 009768124df70258806ec3120189432d1b2bb912 (patch) | |
tree | cc66e19004645686d0bf84e71fa54f490e0ff4a7 /inc/cache.php | |
parent | 0b30864498cfa9af2398991188109da991e4613f (diff) | |
download | dokuwiki-009768124df70258806ec3120189432d1b2bb912.tar.gz dokuwiki-009768124df70258806ec3120189432d1b2bb912.zip |
don't use realpath() anymore (FS#1261 and others)
The use of realpath() to clean up relative file names caused some
trouble in certain setups relying on symlinks or having restricitve
file structure setups.
This patch replaces all realpath() calls with a PHP only replacement
which should solve those problems.
darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
Diffstat (limited to 'inc/cache.php')
-rw-r--r-- | inc/cache.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/cache.php b/inc/cache.php index a3b16d974..2c43da5ff 100644 --- a/inc/cache.php +++ b/inc/cache.php @@ -6,7 +6,7 @@ * @author Chris Smith <chris@jalakai.co.uk> */ -if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/'); +if(!defined('DOKU_INC')) define('DOKU_INC',fullpath(dirname(__FILE__).'/../').'/'); require_once(DOKU_INC.'inc/io.php'); require_once(DOKU_INC.'inc/pageutils.php'); |