Specified directory is outside the upload directory
-
Hi, we are noticing on a few of our sites that when you select the second option to replace all links to image on site, that it will sometimes fail with the message:
Specificed directory is outside the upload directory. This is not allowed for security reasons
It looks like this is coming from
setNewTargetLocation()
method inclasses/replacer.php
on line 345.I’m thinking this may have something to do with the fact that our uploads folder is symlinked. We have our site setup similar to a Roots site, so the uploads folder is symlinked to a shared folder across deployments. I’m thinking maybe the call to
realpath()
is resolving the symlink or something and then EMR thinks it is outside of the upload directory.
The topic ‘Specified directory is outside the upload directory’ is closed to new replies.