Fixed bug #986, thanks to Sebastian Kurfuerst.
authorKarsten Dambekalns <karsten.dambekalns@typo3.org>
Mon, 18 Apr 2005 10:27:50 +0000 (10:27 +0000)
committerKarsten Dambekalns <karsten.dambekalns@typo3.org>
Mon, 18 Apr 2005 10:27:50 +0000 (10:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@650 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/file_upload.php

index 08d191d..d2a243f 100755 (executable)
@@ -143,7 +143,7 @@ class SC_file_upload {
 
                        function reload(a)      {       //
                                if (!changed || (changed && confirm('.$LANG->JScharCode($LANG->sL('LLL:EXT:lang/locallang_core.php:mess.redraw')).')))  {
-                                       var params = "&target="+escape(path)+"&number="+a;
+                                       var params = "&target="+escape(path)+"&number="+a+"&returnUrl='.htmlspecialchars($this->returnUrl).'";
                                        document.location = "file_upload.php?"+params;
                                }
                        }