Use the realpath for the handling with (temporary) paths
This commit is contained in:
parent
e854186134
commit
5d7e1e1a15
2 changed files with 20 additions and 2 deletions
|
@ -973,10 +973,25 @@ function admin_page_site_post(App $a) {
|
|||
|
||||
set_config('system', 'force_ssl', $force_ssl);
|
||||
set_config('system', 'hide_help', $hide_help);
|
||||
|
||||
if ($itemcache != '') {
|
||||
$itemcache = realpath($itemcache);
|
||||
}
|
||||
|
||||
set_config('system', 'itemcache', $itemcache);
|
||||
set_config('system', 'itemcache_duration', $itemcache_duration);
|
||||
set_config('system', 'max_comments', $max_comments);
|
||||
|
||||
if ($temppath != '') {
|
||||
$temppath = realpath($temppath);
|
||||
}
|
||||
|
||||
set_config('system', 'temppath', $temppath);
|
||||
|
||||
if ($basepath != '') {
|
||||
$basepath = realpath($basepath);
|
||||
}
|
||||
|
||||
set_config('system', 'basepath', $basepath);
|
||||
set_config('system', 'proxy_disabled', $proxy_disabled);
|
||||
set_config('system', 'only_tag_search', $only_tag_search);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue