Project

General

Profile

Actions

Bug #26133

closed

Fix broken string replacement for media/ folder

Added by Patrick Rodacker about 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-04-19
Due date:
% Done:

0%

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

Description

The function setAbsRefPrefix() of the class tslib_fe includes the following string replacement, which is obsolete and should be removed.

$this->content = str_replace('"media/', '"'.t3lib_extMgm::siteRelPath('cms').'tslib/media/', $this->content);

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #25028: Remove cms/tslib/media folder to TER extensionClosed2011-02-14

Actions
Related to TYPO3 Core - Bug #25985: remove obsolete check for dir media/scripts/ in Function tslib_fe::checkFileIncludeClosed2011-04-15

Actions
Related to TYPO3 Core - Task #28024: Remove tslib/media, cglify statictemplates/mediaClosed2011-07-09

Actions
Actions #1

Updated by Mr. Hudson almost 13 years ago

Patch set 1 of change Ie9736d815308c20f609f58da2cda735dcdc0a037 has been pushed to the review server.
It is available at http://review.typo3.org/2363

Actions #2

Updated by Susanne Moog almost 13 years ago

  • Status changed from New to Under Review
Actions #3

Updated by Patrick Rodacker almost 13 years ago

From Gerrit:

Susanne Moog        May 24
Patch Set 1: I would prefer that you didn't submit this
As far as I can see we should not remove the replacement as TYPO3 core still 
allows the media/ folder as valid place for storing scripts and media files 
(see t3lib_tstemplate for example) - if someone is still using that directory 
for file inclusion this patch will break paths if absRefPrefix is used.
We should deprecate the inclusion of files in the media folder first.

How do we deprecate the inclusion from the media/ folder first?

I read in another post, that a htaccess file with an AJAX call to write the log could be used.

Actions #4

Updated by Steffen Gebert about 12 years ago

  • Status changed from Under Review to Rejected
Actions #5

Updated by Steffen Gebert about 12 years ago

  • Status changed from Rejected to Under Review
Actions #6

Updated by Chris topher almost 12 years ago

Now this folder has been removed from the TYPO3 Core. The replacement, which you quoted above, is still there and will not work anymore. Instead the files from statictemplates/media should be used.

Actions #7

Updated by Chris topher almost 12 years ago

  • Subject changed from remove obsolete string replacement for media/ folder in tslib_fe::setAbsRefPrefix to Fix broken string replacement for media/ folder
  • Target version set to 6.0.0-pre-beta1
Actions #8

Updated by Alexander Opitz almost 11 years ago

  • Status changed from Under Review to New
  • Target version deleted (6.0.0-pre-beta1)

Patch was abandoned

Actions #9

Updated by Riccardo De Contardi over 9 years ago

the line reported is still present in 4.5.39, but does not exists in 6.2.9

Actions #10

Updated by Wouter Wolters over 9 years ago

  • Status changed from New to Closed
  • Is Regression set to No

Hi, as we removed the complete media stuff I'll close this ticket.

Actions

Also available in: Atom PDF