mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 20:43:48 -07:00
hyprctl: sanity check icons in notify
This commit is contained in:
@@ -1158,7 +1158,7 @@ std::string dispatchNotify(std::string request) {
|
||||
icon = std::stoi(ICON);
|
||||
} catch (std::exception& e) { return "invalid arg 1"; }
|
||||
|
||||
if (icon == -1 || icon > ICON_NONE) {
|
||||
if (icon > ICON_NONE || icon < 0) {
|
||||
icon = ICON_NONE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user