diff options
-rw-r--r-- | inc/io.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/io.php b/inc/io.php index f62dba88b..85cba7421 100644 --- a/inc/io.php +++ b/inc/io.php @@ -134,7 +134,7 @@ function io_makeFileDir($file){ $dir = dirname($file); if($conf['safemodehack']){ - preg_replace('/^'.preg_quote(realpath($conf['ftp']['root']),'/').'/','',$dir); + $dir = preg_replace('/^'.preg_quote(realpath($conf['ftp']['root']),'/').'/','',$dir); } umask($conf['dmask']); if(!is_dir($dir)){ |