mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-21 18:29:05 +02:00
Merge pull request #22174 from hrydgard/misc-correctness-fixes
Claude code review: Misc minor correctness fixes
This commit is contained in:
7 files changed
+48
-14
No files matched your search
@@ -712,6 +712,14 @@ static void HandleUploadPost(const http::ServerRequest &request) {
|
||||
return;
|
||||
}
|
||||
|
||||
// This handler is registered unconditionally, so it has to check the flag itself - otherwise
|
||||
// closing the Upload screen leaves an unauthenticated write endpoint live for as long as
|
||||
// anything else (remote ISO, the debugger) keeps the server up.
|
||||
if (!(serverFlags & WebServerFlags::FILE_UPLOAD)) {
|
||||
ERROR_LOG(Log::HTTP, "Upload requested, but uploading isn't enabled");
|
||||
return;
|
||||
}
|
||||
|
||||
Path uploadPath;
|
||||
{
|
||||
std::lock_guard<std::mutex> guard(g_webServerLock);
|
||||
|
||||
Reference in new issue
Block a user