all repos — fluxbox @ 0df41cf8385e0a31b4c9158aa182da52a50ba534

custom fork of the fluxbox windowmanager

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
commit

0df41cf8385e0a31b4c9158aa182da52a50ba534

parent

05d860eda73f5461a471fdafc404c9fdf680f4a7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/FbCommands.ccsrc/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);