client/Process: more strict syntax check
This commit is contained in:
parent
f339a53e3c
commit
39baa4e364
@ -55,8 +55,8 @@ Client::ProcessCommandList(bool list_ok,
|
|||||||
CommandResult
|
CommandResult
|
||||||
Client::ProcessLine(char *line) noexcept
|
Client::ProcessLine(char *line) noexcept
|
||||||
{
|
{
|
||||||
if (IsUpperAlphaASCII(*line)) {
|
if (!IsLowerAlphaASCII(*line)) {
|
||||||
/* no valid MPD command begins with an upper case
|
/* all valid MPD commands begin with a lower case
|
||||||
letter; this could be a badly routed HTTP
|
letter; this could be a badly routed HTTP
|
||||||
request */
|
request */
|
||||||
FormatWarning(client_domain,
|
FormatWarning(client_domain,
|
||||||
|
Loading…
Reference in New Issue
Block a user