Merge pull request #40 from bb010g/patch-2
Fix Wikipedia links with special characters
This commit is contained in:
commit
ab30fa2c6e
@ -43,7 +43,7 @@ local action = function(msg)
|
|||||||
return
|
return
|
||||||
end
|
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', '')
|
local title = jdat.responseData.results[1].titleNoFormatting:gsub(' %- Wikipedia, the free encyclopedia', '')
|
||||||
|
|
||||||
jstr, res = HTTPS.request(wurl .. URL.escape(title))
|
jstr, res = HTTPS.request(wurl .. URL.escape(title))
|
||||||
|
Reference in New Issue
Block a user