summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-03 22:28:45 +0200
committerMax Kellermann <max@musicpd.org>2019-04-03 22:29:43 +0200
commit39baa4e3646d9c1bed416dd98812395cec1e9057 (patch)
tree34f146142408ec1960b03beabb8da6dca6a8a7a7 /src/client
parentf339a53e3cb53352e9560d864c715514938f7b79 (diff)
client/Process: more strict syntax check
Diffstat (limited to 'src/client')
-rw-r--r--src/client/Process.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Process.cxx b/src/client/Process.cxx
index f8b4340a6..140923c67 100644
--- a/src/client/Process.cxx
+++ b/src/client/Process.cxx
@@ -55,8 +55,8 @@ Client::ProcessCommandList(bool list_ok,
CommandResult
Client::ProcessLine(char *line) noexcept
{
- if (IsUpperAlphaASCII(*line)) {
- /* no valid MPD command begins with an upper case
+ if (!IsLowerAlphaASCII(*line)) {
+ /* all valid MPD commands begin with a lower case
letter; this could be a badly routed HTTP
request */
FormatWarning(client_domain,