fix maps with spaces in name (fuck you edge runner)

This commit is contained in:
Jonny_Bro (Nikita) 2023-08-26 09:56:15 +05:00
parent 54e2e82901
commit ec240dc229

View file

@ -29,7 +29,7 @@ concommand.Add("Beatrun_UploadCourse", UploadCourse)
function GetCourse(sharecode)
local url = domain:GetString() .. "/getcourse.php"
.. "?sharecode=" .. sharecode
.. "&map=" .. game.GetMap()
.. "&map=" .. string.gsub(game.GetMap(), " ", "-")
.. "&key=" .. apikey:GetString()
http.Fetch(url, function(body, length, headers, code)