From d76d21ee5a4682bb47c3872649af6167c64cc08e Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Sun, 11 Sep 2022 20:50:12 +0200 Subject: [PATCH] Another fix --- src/client/component/party.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/client/component/party.cpp b/src/client/component/party.cpp index df5abc11..7bf83a18 100644 --- a/src/client/component/party.cpp +++ b/src/client/component/party.cpp @@ -153,6 +153,11 @@ namespace party bool download_mod(const game::netadr_s& target, const utils::info_string& info) { const auto server_fs_game = utils::string::to_lower(info.get("fs_game")); + if (server_fs_game.empty()) + { + return false; + } + if (!server_fs_game.starts_with("mods/") || server_fs_game.contains('.')) { menu_error(utils::string::va("Invalid server fs_game value %s\n", server_fs_game.data()));