Merge pull request #40 from bb010g/patch-2

Fix Wikipedia links with special characters
This commit is contained in:
Drew 2016-02-25 22:53:34 -05:00
commit ab30fa2c6e

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))