Commit ba675d6a authored by Max Kellermann's avatar Max Kellermann

FileCommands: use PathTraitsUTF8::IsAbsolute()

parent e4c5a4f6
......@@ -125,7 +125,7 @@ handle_read_comments(Client &client, gcc_unused int argc, char *argv[])
return print_error(client, error);
} else if (uri_has_scheme(uri)) {
return read_stream_comments(client, uri);
} else if (*uri != '/') {
} else if (!PathTraitsUTF8::IsAbsolute(uri)) {
#ifdef ENABLE_DATABASE
path_fs = map_uri_fs(uri);
if (path_fs.IsNull()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment