Fixed relative path parsing

Fixed #2821
This commit is contained in:
Nick Van den Broeck 2019-05-28 10:17:28 +02:00
parent 638c56caed
commit 6fb7545fa1

View file

@ -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;