Fixed bug #986, thanks to Sebastian Kurfuerst.
[Packages/TYPO3.CMS.git] / 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')).')))  {
 
                        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;
                                }
                        }
                                        document.location = "file_upload.php?"+params;
                                }
                        }