util/UriRelative: fix variable mixup

This commit is contained in:
Max Kellermann 2021-10-07 14:44:37 +02:00
parent 41a69027c2
commit c34a1e29de

View File

@ -173,7 +173,7 @@ uri_apply_relative(const std::string &relative_uri,
if (StringStartsWith(relative_path, "../"))
return {};
if (!StringIsEqual(relative_path, "."))
result += relative_uri;
result += relative_path;
return result;
}