Project

General

Profile

Actions

Bug #20037

closed

typo3/typo3/db_list.php was not found

Added by Sven Juergens almost 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2009-02-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

10465.patch (514 Bytes) 10465.patch Administrator Admin, 2009-02-18 01:36
Actions #1

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>';
}

Actions #2

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 ?

Actions #3

Updated by Chris topher over 14 years ago

Hi Sven,

did you post your patch to Core List?
I cann't find it there...

Actions #4

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

Actions #5

Updated by Christian Kuhn over 14 years ago

Resolved, unable to reproduce as requested by reporter.

Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF