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.
This commit is contained in:
Maik Broemme 2015-12-03 00:44:44 +01:00 committed by Mathias Gumz
parent 05d860eda7
commit 0df41cf838

View file

@ -175,7 +175,7 @@ FbTk::Command<void> *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);