Fixed bug #17511: tx_install_session::write doesn't fix permissions
authortolleiv <tolleiv@709f56b5-9817-0410-a4d7-c38de5d9e867>
Wed, 23 Feb 2011 09:53:20 +0000 (09:53 +0000)
committertolleiv <tolleiv@709f56b5-9817-0410-a4d7-c38de5d9e867>
Wed, 23 Feb 2011 09:53:20 +0000 (09:53 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@10579 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/install/mod/class.tx_install_session.php

index ea7fc50..38bd34e 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-23  Tolleiv Nietsch  <typo3@tolleiv.de>
+
+       * Fixed bug #17511: tx_install_session::write doesn't fix permissions
+
 2011-02-23  Francois Suter  <francois.suter@typo3.org>
 
        * Fixed bug #16636: Suggest wizard does not work with drop-down select fields
index de5e6e5..8c5c06f 100644 (file)
@@ -138,7 +138,7 @@ class tx_install_session {
         */
        private function getSessionSavePath() {
                return sprintf(
-                       $this->typo3tempPath . '/' . $this->sessionPath,
+                       $this->typo3tempPath . $this->sessionPath,
                        md5(
                                'session:' .
                                        $GLOBALS['TYPO3_CONF_VARS']['BE']['installToolPassword']
@@ -344,13 +344,7 @@ class tx_install_session {
         */
        public function write($id, $sessionData) {
                $sessionFile = $this->getSessionFile($id);
-               if ($fp = @fopen($sessionFile, 'w')) {
-                       $return = fwrite($fp, $sessionData);
-                       fclose($fp);
-                       return $return;
-               } else {
-                       return FALSE;
-               }
+               return t3lib_div::writeFile($sessionFile, $sessionData);
        }
 
        /**