diff options
author | the lemons <citrons@mondecitronne.com> | 2022-02-09 01:25:12 -0600 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2022-02-09 01:25:12 -0600 |
commit | f9eb0b5207117ed74f395210c375dc751c66888d (patch) | |
tree | 6563a88748bdf0ed62dc399bbd20a60e07ac8143 | |
parent | 7bb4a11282af6499029e06ca8992eba6980eac51 (diff) |
convert dos newlines from form input to unix newlines
-rwxr-xr-x | zzcxz.cgi | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -40,9 +40,10 @@ local function parse_qs(str,sep) if not path then str = str:gsub('+', ' ') end - return (str:gsub("%%(%x%x)", function(c) + str = str:gsub("%%(%x%x)", function(c) return string.char(tonumber(c, 16)) - end)) + end) + return (str:gsub('\r\n', '\n')) end local values = {} |