Skip to content

Commit

Permalink
Fixed relative path parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
PACTUser committed May 28, 2019
1 parent 638c56c commit 6fb7545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libexpr/primops/flakeref.cc
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ FlakeRef::FlakeRef(const std::string & uri, bool allowRelative)
data = d;
}

else if (hasPrefix(uri, "/") || (allowRelative && (hasPrefix(uri, "./") || uri == "."))) {
else if (hasPrefix(uri, "/") || (allowRelative && (hasPrefix(uri, "./") || hasPrefix(uri, "../") || uri == "."))) {
IsPath d;
d.path = allowRelative ? absPath(uri) : canonPath(uri);
data = d;
Expand Down

0 comments on commit 6fb7545

Please sign in to comment.