Bug #20037
closed
typo3/typo3/db_list.php was not found
Added by Sven Juergens almost 16 years ago.
Updated about 6 years ago.
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
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>';
}
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 ?
Hi Sven,
did you post your patch to Core List?
I cann't find it there...
hey Christopher,
the bug can be closed, it's not existing anymore in 4.2x and 4.4
Resolved, unable to reproduce as requested by reporter.
- Status changed from Resolved to Closed
Also available in: Atom
PDF