Module:Utilities: Difference between revisionsGive feedback
Jump to navigation
Jump to search
m url_encode initial |
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( | return string.gsub(str, " ", "%%20") | ||
end | end | ||
return p | return p | ||