diff options
author | Kim Alvefur <zash@zash.se> | 2021-10-25 21:45:06 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-10-25 21:45:06 +0200 |
commit | 7a272b16703fd26c19f6f2519229b1ca539377ed (patch) | |
tree | 76a5c6567fea04d33a2244b5eb3dd5447cc3017e /plugins | |
parent | 20543ca56ed6d66f98605f67bd41657e05bf74f8 (diff) | |
download | prosody-7a272b16703fd26c19f6f2519229b1ca539377ed.tar.gz prosody-7a272b16703fd26c19f6f2519229b1ca539377ed.zip |
mod_http_file_share: Move number coercion into util.dataforms
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_http_file_share.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua index 7b05c85a..a5ac287c 100644 --- a/plugins/mod_http_file_share.lua +++ b/plugins/mod_http_file_share.lua @@ -47,8 +47,8 @@ end module:add_extension(dataform { { name = "FORM_TYPE", type = "hidden", value = namespace }, - { name = "max-file-size", type = "text-single" }, -}:form({ ["max-file-size"] = tostring(file_size_limit) }, "result")); + { name = "max-file-size", type = "text-single", datatype = "xs:integer" }, +}:form({ ["max-file-size"] = file_size_limit }, "result")); local upload_errors = errors.init(module.name, namespace, { access = { type = "auth"; condition = "forbidden" }; |