mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 00:17:44 +00:00
properly escape the version and uploads values in info.cfg
This commit is contained in:
parent
c3589f5366
commit
5a42eb54d6
@ -1317,8 +1317,8 @@ void game_controller::download_campaigns(std::string host)
|
||||
f["name"] = "info.cfg";
|
||||
std::string s;
|
||||
s += "[info]\n";
|
||||
s += "version=" + versions[index] + "\n";
|
||||
s += "uploads=" + uploads[index] + "\n";
|
||||
s += "version=\"" + versions[index] + "\"\n";
|
||||
s += "uploads=\"" + uploads[index] + "\"\n";
|
||||
s += "[/info]\n";
|
||||
f["contents"] = s;
|
||||
maindir->add_child("file", f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user