Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
28f9a0a9
Commit
28f9a0a9
authored
Nov 13, 2015
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command/other: re-allow "lsinfo /"
This compatibility hack was accidently broken by commit
f072cbbb
parent
a6bb3cf6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
OtherCommands.cxx
src/command/OtherCommands.cxx
+8
-1
No files found.
src/command/OtherCommands.cxx
View file @
28f9a0a9
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment