diff options
| author | Vaxry <vaxry@vaxry.net> | 2024-01-28 20:01:35 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2024-01-28 20:01:46 +0000 |
| commit | 5a90911b70ab19ea99efe2fa9ab4d8e2153df4eb (patch) | |
| tree | f8dbdcb38b72f21106e75c8d20a6c5ccd320e19b /hyprpm/src/core/PluginManager.cpp | |
| parent | 0e5f14d8d2eb44ed0d8bad4628ab93075155f430 (diff) | |
hyprpm: verify headersHashCompiled as well in headersValid()
ref #4547
Diffstat (limited to 'hyprpm/src/core/PluginManager.cpp')
| -rw-r--r-- | hyprpm/src/core/PluginManager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hyprpm/src/core/PluginManager.cpp b/hyprpm/src/core/PluginManager.cpp index 446d5860..f07c8645 100644 --- a/hyprpm/src/core/PluginManager.cpp +++ b/hyprpm/src/core/PluginManager.cpp @@ -310,7 +310,9 @@ eHeadersErrors CPluginManager::headersValid() { hash = hash.substr(hash.find_first_of('"') + 1); hash = hash.substr(0, hash.find_first_of('"')); - if (hash != HLVER.hash) + auto GLOBALSTATE = DataState::getGlobalState(); + + if (hash != HLVER.hash || hash != GLOBALSTATE.headersHashCompiled) return HEADERS_MISMATCHED; return HEADERS_OK; |
