Révision 6b24a280
Ajouté par Assos Assos il y a presque 4 ans
drupal7/misc/typo3/phar-stream-wrapper/src/Helper.php | ||
---|---|---|
52 | 52 |
|
53 | 53 |
while (count($parts)) { |
54 | 54 |
$currentPath = implode('/', $parts); |
55 |
if (@is_file($currentPath)) { |
|
55 |
if (@is_file($currentPath) && realpath($currentPath) !== false) {
|
|
56 | 56 |
return $currentPath; |
57 | 57 |
} |
58 | 58 |
array_pop($parts); |
... | ... | |
106 | 106 |
* @param string $path File path to process |
107 | 107 |
* @return string |
108 | 108 |
*/ |
109 |
private static function normalizeWindowsPath($path)
|
|
109 |
public static function normalizeWindowsPath($path)
|
|
110 | 110 |
{ |
111 | 111 |
return str_replace('\\', '/', $path); |
112 | 112 |
} |
Formats disponibles : Unified diff
-a