Module:Utilities: Difference between revisions

Sur (talk | contribs)
m url_encode initial
Sur (talk | contribs)
m url_encode fix, str instead of input
Line 74: Line 74:
function p.url_encode(str)
function p.url_encode(str)
-- Just replaces spaces with %20
-- Just replaces spaces with %20
return string.gsub(input, " ", "%%20")
return string.gsub(str, " ", "%%20")
end
end
return p
return p