mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Removed post data from Achievement request logs
post_data included passwords and API keys in plaintext so continuing to include it in logs is a security liability.
This commit is contained in:
parent
03e3f65653
commit
f25bdda728
@ -1631,10 +1631,8 @@ AchievementManager::ResponseType AchievementManager::Request(
|
|||||||
const std::string response_str(http_response->begin(), http_response->end());
|
const std::string response_str(http_response->begin(), http_response->end());
|
||||||
if (process_response(rc_response, response_str.c_str()) != RC_OK)
|
if (process_response(rc_response, response_str.c_str()) != RC_OK)
|
||||||
{
|
{
|
||||||
ERROR_LOG_FMT(
|
ERROR_LOG_FMT(ACHIEVEMENTS, "Failed to process HTTP response. \nURL: {} \nresponse: {}",
|
||||||
ACHIEVEMENTS, "Failed to process HTTP response. \nURL: {} \npost_data: {} \nresponse: {}",
|
api_request.url, response_str);
|
||||||
api_request.url, api_request.post_data == nullptr ? "NULL" : api_request.post_data,
|
|
||||||
response_str);
|
|
||||||
return ResponseType::MALFORMED_OBJECT;
|
return ResponseType::MALFORMED_OBJECT;
|
||||||
}
|
}
|
||||||
if (rc_response->response.succeeded)
|
if (rc_response->response.succeeded)
|
||||||
@ -1650,9 +1648,7 @@ AchievementManager::ResponseType AchievementManager::Request(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WARN_LOG_FMT(ACHIEVEMENTS, "RetroAchievements connection failed. \nURL: {} \npost_data: {}",
|
WARN_LOG_FMT(ACHIEVEMENTS, "RetroAchievements connection failed. \nURL: {}", api_request.url);
|
||||||
api_request.url,
|
|
||||||
api_request.post_data == nullptr ? "NULL" : api_request.post_data);
|
|
||||||
return ResponseType::CONNECTION_FAILED;
|
return ResponseType::CONNECTION_FAILED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user