Bug #20037
closedtypo3/typo3/db_list.php was not found
0%
Description
It seems there ist a wrong Return Path.
to reproduce it:
got to List View, select a record and transfer it to the clipboard.
Now go to the Clipbord menu und choose edit.
in this Edit Mode click "Close" or "Save and Close" button.
reproducible with TYPO3 4.2.6 and TYPO3 4.3
(issue imported from #M10465)
Files
Updated by Sven Juergens almost 16 years ago
it seems this is related with changes in class.t3lib_clipboard.php
from bug #18673
rawurlencodeAndRemoveSiteUrl() generate a wrong &returnUrl back to db_list.php at this pint
line: 340
// Edit:
if (!$this->fileMode && $elCount) {
$opt[]='<option value="' . htmlspecialchars("window.location.href='" . $this->editUrl() . "&returnUrl='+top.rawurlencodeAndRemoveSiteUrl(window.location.href);") . '">' . $this->clLabel('edit', 'rm') . '</option>';
}
Updated by Sven Juergens almost 16 years ago
some more information:
function rawurlencodeAndRemoveSiteUrl(str) { //
var siteUrl = "' . t3lib_div::getIndpEnv('TYPO3_SITE_URL') . '";
return rawurlencode(str_replace(siteUrl, \'\', str));
}
this function produce this returnUrl:
(typo3/db_list.php ...)
&returnUrl=typo3%2Fdb_list.php%3Fid%3D1
when you have TYPO3 installed in a subdirectory this is an wrong path,
using instead- TYPO3_REQUEST_HOST
function rawurlencodeAndRemoveSiteUrl(str) { //
var siteUrl = "' . t3lib_div::getIndpEnv('TYPO3_REQUEST_HOST') . '";
return rawurlencode(str_replace(siteUrl, \'\', str));
}
and it produce a returnUrl with subdirectory.
what do you think about it ?
Updated by Chris topher over 14 years ago
Hi Sven,
did you post your patch to Core List?
I cann't find it there...
Updated by Sven Juergens over 14 years ago
hey Christopher,
the bug can be closed, it's not existing anymore in 4.2x and 4.4
Updated by Christian Kuhn over 14 years ago
Resolved, unable to reproduce as requested by reporter.