Assets are not copied from style archive when using symlinks

Status
This content is read-only, or is not open for further replies.

Kirby

Guest
offline
If the path to the temporary directory does contain a symlink somewhere, copying files from a style archive does fail due to
PHP:

Code:
$stdPath = File::stripRootPathPrefix($pathname, $tempDir);

if (!$this->isWithinAssetPath($stdPath, $assetPaths))
{
    continue;
}
As $tempDir does not contain the realpath, calling stripRootPathPrefix does nothing and thus isWithinAssetPath returns false which skips the file.

Suggested Solution
Call realpath before returing...

Read more

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.
Top Bottom