properly escape the version and uploads values in info.cfg
This commit is contained in:
parent
c3589f5366
commit
5a42eb54d6
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue