Issue Bug Closed

#32046function t3lib_div::validPathStr fails on certain file names

Jürgen Tauschl 11/24/11, 00:50 updated 10/02/18, 12:19

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).

Reviews 3