From 2b613443cda18b2aef17ecf12c5139988a0d2f42 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 3 Jul 2016 20:44:39 -0700 Subject: [PATCH] http: Fix paths with spaces in them. Should ideally escape other characters, but only space is necessary for our server to parse. --- UI/RemoteISOScreen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UI/RemoteISOScreen.cpp b/UI/RemoteISOScreen.cpp index 4a46a4bca8..af4fa2a06f 100644 --- a/UI/RemoteISOScreen.cpp +++ b/UI/RemoteISOScreen.cpp @@ -95,7 +95,7 @@ static void ExecuteServer() { // Let's not serve directories, since they won't work. Only single files. // Maybe can do PBPs and other files later. Would be neat to stream virtual disc filesystems. if (endsWithNoCase(basename, ".cso") || endsWithNoCase(basename, ".iso")) { - paths[basename] = filename; + paths[ReplaceAll(basename, " ", "%20")] = filename; } }