소스 검색

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