Skip to content

Commit 26c27e7

Browse files
authored
Merge pull request #1 from raphaChoquet/fix-path-outside-root-path
Fix absolute path
2 parents 966f419 + 3047b87 commit 26c27e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Binary/Loader/FileSystemLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public function __construct(
5959
*/
6060
public function find($path)
6161
{
62-
if (!($absolutePath = realpath($this->rootPath.DIRECTORY_SEPARATOR.$path))) {
62+
if (!($absolutePath = realpath($this->rootPath).DIRECTORY_SEPARATOR.$path)) {
6363
throw new NotLoadableException(sprintf('Source image not resolvable "%s"', $path));
6464
}
6565

0 commit comments

Comments
 (0)