[BUGFIX] Handle IDN domain names correctly
[Packages/TYPO3.CMS.git] / typo3 / class.file_list.inc
index dc93d0e..bed25f5 100644 (file)
@@ -691,13 +691,14 @@ class fileList extends t3lib_recordList {
                } else {
                        $editOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_edit.php?target=' .
                                rawurlencode($fullIdent) .
-                               '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;';
+                               '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;';
                        $cells['edit'] = '<a href="#" onclick="' . $editOnClick . '" title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.edit') . '">' . t3lib_iconWorks::getSpriteIcon('actions-page-open') . '</a>';
                }
                        //rename
                $renameOnClick = 'top.content.list_frame.location.href=top.TS.PATH_typo3+\'file_rename.php?target=' .
                        rawurlencode($fullIdent) .
-                       '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location);return false;';
+                       '&returnUrl=\'+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search);return false;';
+
                $cells['rename'] = '<a href="#" onclick="' . $renameOnClick . '"  title="' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:cm.rename') . '">' . t3lib_iconWorks::getSpriteIcon('actions-edit-rename') . '</a>';
 
                        //info