Bladeren bron

Add a minimal description of mg.url_decode

Add a mimimal comment to the UserManual about the Lua function mg.url_decode
See #228

A more comprehensive documentation has to be added later.
bel 9 jaren geleden
bovenliggende
commit
d516696195
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      docs/UserManual.md

+ 1 - 1
docs/UserManual.md

@@ -486,7 +486,7 @@ mg (table):
     mg.get_mime_type(filename) -- get MIME type of a file
     mg.get_mime_type(filename) -- get MIME type of a file
     mg.send_file(filename)     -- send a file, including MIME type
     mg.send_file(filename)     -- send a file, including MIME type
     mg.url_encode(str)         -- URL encode a string
     mg.url_encode(str)         -- URL encode a string
-    mg.url_decode(str)         -- URL decode a string
+    mg.url_decode(str, [form]) -- URL decode a string. If form=true, replace + by space.
     mg.base64_encode(str)      -- BASE64 encode a string
     mg.base64_encode(str)      -- BASE64 encode a string
     mg.base64_decode(str)      -- BASE64 decode a string
     mg.base64_decode(str)      -- BASE64 decode a string
     mg.md5(str)                -- return the MD5 hash of a string
     mg.md5(str)                -- return the MD5 hash of a string