From 0df41cf8385e0a31b4c9158aa182da52a50ba534 Mon Sep 17 00:00:00 2001 From: Maik Broemme Date: Thu, 3 Dec 2015 00:44:44 +0100 Subject: Fix evaluating variables in ExportCmd Don't evaluate trusted variables in *ExportCmd::parse as they will be always false for SetEnv, Export and SetResourceValue and never executed via fluxbox-remote. --- src/FbCommands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FbCommands.cc b/src/FbCommands.cc index bc4b1e9..4714e11 100644 --- a/src/FbCommands.cc +++ b/src/FbCommands.cc @@ -175,7 +175,7 @@ FbTk::Command *ExportCmd::parse(const string &command, const string &args, if (command != "setresourcevalue") FbTk::StringUtil::removeTrailingWhitespace(name); size_t pos = name.find_first_of(command == "export" ? "=" : " \t"); - if (pos == string::npos || pos == name.size() || !trusted) + if (pos == string::npos || pos == name.size()) return 0; string value = name.substr(pos + 1); -- cgit v0.11.2