Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix possible path existence disclossure
On non released versions (where line counts are not precalculated) it was possible to check for file existence due to limited checks for supplied path. Signed-off-by: Michal Čihař <michal@cihar.com>
- Loading branch information
d2dc948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be
&& $part != ''
?d2dc948
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we need to skip both empty string and . as both mean current directory.