RSS Feed/News Assets are not copied from style archive when using symlinks

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
27,908
Points
823

Reputation:

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...
 
Status
Not open for further replies.
Top