fix: Escape user controlled input

This commit is contained in:
Robinhuett
2019-02-25 18:28:56 +01:00
parent abfa428dab
commit 7247360e29
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ void waybar::modules::sway::Mode::worker()
auto res = ipc_.handleEvent();
auto parsed = parser_.parse(res.payload);
if (parsed["change"] != "default") {
mode_ = parsed["change"].asString();
mode_ = Glib::Markup::escape_text(parsed["change"].asString());
} else {
mode_.clear();
}