浏览代码

Ensure that the basedir is always the "real" path

Andy Baugh 6 年之前
父节点
当前提交
60af7d0fa0
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/install

+ 1 - 1
bin/install

@@ -42,7 +42,7 @@ if( !file_exists($user_info['dir'] . "/.tCMS_basedir") ) {
     echo "            '" . $user_info["dir"] . "/.tCMS_basedir'\n";
     echo "        Please press [enter] to continue.";
     get_string_from_stdin(); # Mostly just to make the user confirm they read this.
-    file_put_contents( $user_info['dir'] . "/.tCMS_basedir", $private_base );
+    file_put_contents( $user_info['dir'] . "/.tCMS_basedir", realpath($private_base) );
 }
 
 # Create admin user