Twitter: Fix, wenn Prozent in einer URL vorkommt

This commit is contained in:
Andreas Bielawski 2016-08-01 15:40:57 +02:00
parent 089e5c7ca2
commit a2435e70e8

View File

@ -90,6 +90,7 @@ function twitter:action(msg, config, matches)
for k, v in pairs(response.entities.urls) do
local short = v.url
local long = v.expanded_url
local long = long:gsub('%%', '%%%%')
text = text:gsub(short, long)
end
end