Fix Wikipedia links with special characters
Wonderfully untested, but it Should Work™.
This commit is contained in:
parent
f5b8d2cbc6
commit
b5c9527c41
@ -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