Bug #18788
closedfile_edit.php replaces ###PATH### in the file being edited with the value of $this->title
0%
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
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.
Updated by Andreas Wagner about 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.