Project

General

Profile

Actions

Bug #32046

closed

function t3lib_div::validPathStr fails on certain file names

Added by Jürgen Tauschl over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2011-11-24
Due date:
% Done:

100%

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

Description

File t3lib/class.t3lib_div.php Line 3952 (function validPathStr):

if (strpos($theFile, '//') === FALSE && strpos($theFile, '\\') === FALSE && !preg_match('#(?:^\.\.|/\.\./|[[:cntrl:]])#', $theFile)) {
    return TRUE;
}

The [[:cntrl:]] part of the search pattern matches on certain German umlauts (Ü, ß). The result is that certain files won't be shown.

Problem exists also in 4.5(.6).


Files

test-32046.php (232 Bytes) test-32046.php Dmitry Dulepov, 2011-12-02 14:20
Actions

Also available in: Atom PDF