Fixed bug #8719: File upload ends up in parse_url error on Windows (thanks to Steffen...
authorJeff Segars <jsegars@alumni.rice.edu>
Mon, 22 Sep 2008 04:08:18 +0000 (04:08 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Mon, 22 Sep 2008 04:08:18 +0000 (04:08 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4162 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/file_list.php

index 908ceca..d0862b6 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-09-21  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Fixed bug #8719: File upload ends up in parse_url error on Windows (thanks to Steffen Kamper)
+
 2008-09-21  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Fixed bug #9404: htmlArea RTE: Cleaning out deprecated extension variables
index ef16cf5..55b8fd9 100755 (executable)
@@ -347,10 +347,10 @@ class SC_file_list {
 
                        // upload button
                $theIcon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/upload.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.upload',1)).'" alt="" />';
-               $buttons['upload'] = '<a href="'.$BACK_PATH.'file_upload.php?target='.htmlspecialchars($this->id).'&returnUrl='.htmlspecialchars($this->filelist->listURL()).'">'.$theIcon.'</a>';
+               $buttons['upload'] = '<a href="'.$BACK_PATH.'file_upload.php?target='.rawurlencode($this->id).'&returnUrl='.rawurlencode($this->filelist->listURL()).'">'.$theIcon.'</a>';
 
                $theIcon = '<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/new_file.gif','width="18" height="16"').' title="'.$GLOBALS['LANG']->makeEntities($GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.new',1)).'" alt="" />';
-               $buttons['new'] = '<a href="'.$BACK_PATH.'file_newfolder.php?target='.htmlspecialchars($this->id).'&returnUrl='.htmlspecialchars($this->filelist->listURL()).'">'.$theIcon.'</a>';
+               $buttons['new'] = '<a href="'.$BACK_PATH.'file_newfolder.php?target='.rawurlencode($this->id).'&returnUrl='.rawurlencode($this->filelist->listURL()).'">'.$theIcon.'</a>';
 
                return $buttons;
        }