Skip to content

Commit

Permalink
💥 use realpath() before including view (#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
tommica authored Dec 11, 2023
1 parent 670abe8 commit 3ffa6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Roots/Acorn/Sage/ViewFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(FileViewFinder $finder, Filesystem $files, $path = '
{
$this->finder = $finder;
$this->files = $files;
$this->path = $path ? realpath($path) : get_theme_file_path();
$this->path = realpath($path ? $path : get_theme_file_path());
}

/**
Expand Down

0 comments on commit 3ffa6ff

Please sign in to comment.