Skip to content

Commit e8f7ffe

Browse files
committed
Sanitized name needs to be unsanitized when talking to the server
1 parent 88a67ce commit e8f7ffe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Source part="runtime" platform="win32" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/runtime/" />
88
<File name="LICENSE.md" part="default" sha1="cc059ae0f4955dfdcf53bf2f40de51ac96e095b2" />
99
<File name="Launch.lua" part="program" sha1="35bf94cd83059bf540d4762e0d657c7dfdea3997" />
10-
<File name="UpdateCheck.lua" part="program" sha1="f469c7768127306405f6f23b77a5654e4b9ce330" />
10+
<File name="UpdateCheck.lua" part="program" sha1="c0a1a7e9823bcecef193bf3a846e93d5ea2d9021" />
1111
<File name="UpdateApply.lua" part="program" sha1="4dd42f413cb89a963e4ae1b40e214985b909c05b" />
1212
<File name="GameVersions.lua" part="program" sha1="ba9b08700c20bb54453133f67139836a3997f685" />
1313
<File name="changelog.txt" part="default" sha1="58b5ff05c31af4a6e2ddfcfa51924d20dab8980c" />

src/UpdateCheck.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ end
161161
local deleteFiles = { }
162162
for name, data in pairs(localFiles) do
163163
data.name = name
164-
local sanitizedName = name:gsub("{space}", " ")
165-
if not remoteFiles[name] and not remoteFiles[sanitizedName] then
164+
local unSanitizedName = name:gsub(" ", "{space}")
165+
if not remoteFiles[name] and not remoteFiles[unSanitizedName] then
166166
table.insert(deleteFiles, data)
167167
end
168168
end

0 commit comments

Comments
 (0)