Commit 28f9a0a9 authored by Max Kellermann's avatar Max Kellermann

command/other: re-allow "lsinfo /"

This compatibility hack was accidently broken by commit f072cbbb
parent a6bb3cf6
......@@ -228,7 +228,14 @@ CommandResult
handle_lsinfo(Client &client, Request args, Response &r)
{
/* default is root directory */
const auto uri = args.GetOptional(0, "");
auto uri = args.GetOptional(0, "");
if (StringIsEqual(uri, "/"))
/* this URI is malformed, but some clients are buggy
and use "lsinfo /" to list files in the music root
directory, which was never intended to work, but
once did; in order to retain backwards
compatibility, work around this here */
uri = "";
Error error;
const auto located_uri = LocateUri(uri, &client,
......
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