Skip to content
Snippets Groups Projects

Issue #3354095: "Check for existing subdirectory returns false positive when public files directory is a root directory or a symlink to a root directory"

Open Issue #3354095: "Check for existing subdirectory returns false positive when public files directory is a root directory or a symlink to a root directory"

Files

@@ -132,6 +132,10 @@ protected function getLocalPath($uri = NULL) {
$realpath = realpath($path);
if (!$realpath) {
// This file does not yet exist.
if (realpath(dirname($path)) === FALSE) {
// Invalid or missing directory
return FALSE;
}
$realpath = realpath(dirname($path)) . '/' . \Drupal::service('file_system')->basename($path);
}
$directory = realpath($this->getDirectoryPath());
Loading