Fix Wikipedia links with special characters

Wonderfully untested, but it Should Work™.
This commit is contained in:
Brayden 2016-02-25 19:51:12 -08:00
parent f5b8d2cbc6
commit b5c9527c41

View File

@ -43,7 +43,7 @@ local action = function(msg)
return
end
--
local url = jdat.responseData.results[1].url
local url = URL.unescape(jdat.responseData.results[1].url)
local title = jdat.responseData.results[1].titleNoFormatting:gsub(' %- Wikipedia, the free encyclopedia', '')
jstr, res = HTTPS.request(wurl .. URL.escape(title))