diff options
author | Andreas Gohr <andi@splitbrain.org> | 2023-03-06 14:05:12 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2023-03-06 14:05:12 +0100 |
commit | 697a39aec74304438d7f74443e3ecce267a98961 (patch) | |
tree | 289fc73d67dd4e7605d0c9a36dfc2afbcb5e3a9b /inc | |
parent | 4ceca26fa0d867d1a9c1dd51ed81e9d64ce6f9f7 (diff) | |
download | dokuwiki-697a39aec74304438d7f74443e3ecce267a98961.tar.gz dokuwiki-697a39aec74304438d7f74443e3ecce267a98961.zip |
output full path when initializing savedir path fails
This will not only clean up double slashes etc. as mentioned in #3903
but will also output the full canonical path (starting at the filesystem
root) when showing an error on initializing the savedir paths. This
should make it easier to understand which path DokuWiki is trying to
access exactly.
Diffstat (limited to 'inc')
-rw-r--r-- | inc/init.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/init.php b/inc/init.php index 112f4896f..cd231b3bc 100644 --- a/inc/init.php +++ b/inc/init.php @@ -289,11 +289,13 @@ function init_paths(){ foreach($paths as $c => $p) { $path = empty($conf[$c]) ? $conf['savedir'].'/'.$p : $conf[$c]; $conf[$c] = init_path($path); - if(empty($conf[$c])) + if(empty($conf[$c])) { + $path = fullpath($path); nice_die("The $c ('$p') at $path is not found, isn't accessible or writable. You should check your config and permission settings. Or maybe you want to <a href=\"install.php\">run the installer</a>?"); + } } // path to old changelog only needed for upgrading |