Skip to content

Commit

Permalink
Sanitized name needs to be unsanitized when talking to the server
Browse files Browse the repository at this point in the history
  • Loading branch information
Wires77 committed Apr 5, 2021
1 parent 88a67ce commit e8f7ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Source part="runtime" platform="win32" url="https://raw.githubusercontent.com/PathOfBuildingCommunity/PathOfBuilding/{branch}/runtime/" />
<File name="LICENSE.md" part="default" sha1="cc059ae0f4955dfdcf53bf2f40de51ac96e095b2" />
<File name="Launch.lua" part="program" sha1="35bf94cd83059bf540d4762e0d657c7dfdea3997" />
<File name="UpdateCheck.lua" part="program" sha1="f469c7768127306405f6f23b77a5654e4b9ce330" />
<File name="UpdateCheck.lua" part="program" sha1="c0a1a7e9823bcecef193bf3a846e93d5ea2d9021" />
<File name="UpdateApply.lua" part="program" sha1="4dd42f413cb89a963e4ae1b40e214985b909c05b" />
<File name="GameVersions.lua" part="program" sha1="ba9b08700c20bb54453133f67139836a3997f685" />
<File name="changelog.txt" part="default" sha1="58b5ff05c31af4a6e2ddfcfa51924d20dab8980c" />
Expand Down
4 changes: 2 additions & 2 deletions src/UpdateCheck.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ end
local deleteFiles = { }
for name, data in pairs(localFiles) do
data.name = name
local sanitizedName = name:gsub("{space}", " ")
if not remoteFiles[name] and not remoteFiles[sanitizedName] then
local unSanitizedName = name:gsub(" ", "{space}")
if not remoteFiles[name] and not remoteFiles[unSanitizedName] then
table.insert(deleteFiles, data)
end
end
Expand Down

0 comments on commit e8f7ffe

Please sign in to comment.