Project

General

Profile

Actions

Bug #29904

closed

t3lib_Compressor should not fix absolute paths in CSS

Added by Andreas Bouche about 13 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
Start date:
2011-09-16
Due date:
% Done:

100%

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

Description

If absolute paths are used in CSS and compression is enabled, t3lib_Compressor prepends the paths with the relative path to the compressed file, regardless of the path being absolute or not. This leads to false paths like "../../typo3temp/compressor//fileadmin/templates[...]".

Therefore I think that the method "findAndReplaceUrlPathsByRegex" should also check if the paths are absolute (start with "/") before replacing them.

Patchset will be submitted shortly.

Actions

Also available in: Atom PDF