From 5a293b1f28f3971064b195d7520fa00accb602d8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 3 Nov 2014 22:18:34 -0500 Subject: [PATCH] CLI - An attribute name may not contains spaces. --- src/CLI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 884536f53..674191a4b 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -2205,6 +2205,10 @@ bool CLI::isAttribute (const std::string& raw) const else return false; + // No spaces in name. + if (attr.find (' ') != std::string::npos) + return false; + std::string::size_type dot = attr.find ("."); std::string mod = ""; if (dot != std::string::npos)