Project

General

Profile

Actions

Bug #18788

closed

file_edit.php replaces ###PATH### in the file being edited with the value of $this->title

Added by Andreas Wagner over 16 years ago. Updated about 16 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-05-14
Due date:
% Done:

0%

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

Description

When editing a file using the filelist module that contains the string "###PATH###", when you save it, ###PATH### is replaced with (in my case) "<img src="sysext/t3skin/icons/gfx/i/_icon_ftp.gif" width="16" height="16" title="" alt="" />fileadmin/: tmpl/test.tmpl".

This is obviously done in template.php in the function moduleBody, since one of the markers in the parameter $markerArray sent to this function is PATH.

I tried entering the other marker names (###CSH###, ###FUNC_MENU###) etc in the textarea, but these doesn't get replaced for some reason.
(issue imported from #M8412)


Files

bug_8412.diff (618 Bytes) bug_8412.diff Administrator Admin, 2008-05-26 23:39
Actions #1

Updated by Andreas Wagner over 16 years ago

Clarification: it's not when you save the file that ###PATH### gets replaced, it's when the module content is put together.

Actions #2

Updated by Typoheads GmbH over 16 years ago

i can confirm this

Actions #3

Updated by Andreas Wagner over 16 years ago

The attached patch fixes the problem by changing the order of the items in $markerArray in typo3/file_edit.php so that 'CONTENT' is the last item to be substituted.

Actions

Also available in: Atom PDF