return;
}
+ char *levelset_identifier = getEscapedJSON(leveldir_current->identifier);
+ char *levelset_name = getEscapedJSON(leveldir_current->name);
+ char *levelset_author = getEscapedJSON(leveldir_current->author);
+ char *player_name = getEscapedJSON(score_entry->name);
+
snprintf(request->body, MAX_HTTP_BODY_SIZE,
"{\n"
" \"game_version\": \"%s\",\n"
" \"tape\": \"%s\"\n"
"}\n",
getProgramRealVersionString(),
- leveldir_current->identifier,
- leveldir_current->name,
- leveldir_current->author,
+ levelset_identifier,
+ levelset_name,
+ levelset_author,
leveldir_current->levels,
leveldir_current->first_level,
level_nr,
- score_entry->name,
+ player_name,
score_entry->score,
score_entry->time,
score_entry->tape_basename,
checked_free(tape_base64);
+ checked_free(levelset_identifier);
+ checked_free(levelset_name);
+ checked_free(levelset_author);
+ checked_free(player_name);
+
ConvertHttpRequestBodyToServerEncoding(request);
if (!DoHttpRequest(request, response))