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.
Maik Broemme mbroemme@libmpq.org
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/FbCommands.cc
→
src/FbCommands.cc
@@ -175,7 +175,7 @@ FbTk::StringUtil::removeFirstWhitespace(name);
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);