aboutsummaryrefslogtreecommitdiff
path: root/src/CommandParser.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-03 22:57:05 (GMT)
committermarkt <markt>2007-07-03 22:57:05 (GMT)
commitd667fcc887fa997bed7c54f1ef24ac9a363d2ace (patch)
tree973a400f99da1203633b143962d3bbd1fa15cee3 /src/CommandParser.cc
parent8f6434efa67b2f11548c9862aaa0d29488645500 (diff)
downloadfluxbox-d667fcc887fa997bed7c54f1ef24ac9a363d2ace.zip
fluxbox-d667fcc887fa997bed7c54f1ef24ac9a363d2ace.tar.bz2
some security fixes for fluxbox-remote, and some minor changes for the gvim fix
Diffstat (limited to 'src/CommandParser.cc')
-rw-r--r--src/CommandParser.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/CommandParser.cc b/src/CommandParser.cc
index 95630d0..a1e52e5 100644
--- a/src/CommandParser.cc
+++ b/src/CommandParser.cc
@@ -62,7 +62,7 @@ CommandParser &CommandParser::instance() {
62 return *s_singleton; 62 return *s_singleton;
63} 63}
64 64
65FbTk::Command *CommandParser::parseLine(const std::string &line) { 65FbTk::Command *CommandParser::parseLine(const std::string &line, bool trusted) {
66 66
67 // parse arguments and command 67 // parse arguments and command
68 string command = line; 68 string command = line;
@@ -83,13 +83,14 @@ FbTk::Command *CommandParser::parseLine(const std::string &line) {
83 // we didn't find any matching command in default commands, 83 // we didn't find any matching command in default commands,
84 // so we search in the command creators modules for a 84 // so we search in the command creators modules for a
85 // matching command string 85 // matching command string
86 return toCommand(command, arguments); 86 return toCommand(command, arguments, trusted);
87 87
88} 88}
89 89
90FbTk::Command *CommandParser::toCommand(const std::string &command_str, const std::string &arguments) { 90FbTk::Command *CommandParser::toCommand(const std::string &command_str,
91 const std::string &arguments, bool trusted) {
91 if (m_commandfactorys[command_str] != 0) 92 if (m_commandfactorys[command_str] != 0)
92 return m_commandfactorys[command_str]->stringToCommand(command_str, arguments); 93 return m_commandfactorys[command_str]->stringToCommand(command_str, arguments, trusted);
93 94
94 return 0; 95 return 0;
95} 96}