[FEATURE] Change t3d exports default export target directory
authorMario Rimann <typo3-coding@rimann.org>
Tue, 26 Jul 2011 21:06:33 +0000 (23:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 31 Jul 2011 12:31:19 +0000 (14:31 +0200)
By default a t3d export ended up in fileadmin/ and the resulting file
was publicly available. This change just changes the default directory
to be fileadmin/_temp_/ which is .htaccess protected and cannot be
accessed from outside.

Change-Id: Ic01e1e38cb96e6f39ea84cd8f71decb046afccb0
Resolves: #17516
Reviewed-on: http://review.typo3.org/3728
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
NEWS.txt
typo3/sysext/impexp/app/index.php

index 402072a..2647c18 100644 (file)
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -97,6 +97,11 @@ figured with:
 $TYPO3_CONF_VARS['FE']['cookieName'] and
 $TYPO3_CONF_VARS['BE']['cookieName'].
 
+* Moved t3d exports to fileadmin/_temp_ directory
+
+t3d packages exported by the import / extbase extension are now stored in
+fileadmin/_temp_ by default which is access restricted by default .htaccess
+rules.
 
 -------------------------------------------------------------------------------
 Backend
@@ -209,4 +214,4 @@ in own extensions can be found at http://wiki.typo3.org/Caching_framework.
 
 The database backend must not define own tables and table definitions anymore.
 Cache tables and table layout of the database backend will created by the
-caching framework when needed.
+caching framework when needed.
\ No newline at end of file
index a8f7d5a..62866ff 100755 (executable)
@@ -1546,11 +1546,11 @@ class SC_mod_tools_log_index extends t3lib_SCbase {
                reset($FILEMOUNTS);
                $filePathInfo = current($FILEMOUNTS);
 
-               if (is_array($filePathInfo))    {
-                       $tempFolder = $filePathInfo['path'].'export/';
-                       if (!@is_dir($tempFolder))      {
+               if (is_array($filePathInfo)) {
+                       $tempFolder = $filePathInfo['path'] . '_temp_/';
+                       if (!@is_dir($tempFolder)) {
                                $tempFolder = $filePathInfo['path'];
-                               if (!@is_dir($tempFolder))      {
+                               if (!@is_dir($tempFolder)) {
                                        return FALSE;
                                }
                        }