From 06d7af79c092201e65b5571ade6f19c0a9282d0d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 1 Sep 2018 03:02:44 +0200 Subject: mod_pubsub: Use dataforms validation to specify that max_items is an integer --- plugins/mod_pubsub/pubsub.lib.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_pubsub') diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 68939b69..83ef2f06 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -71,6 +71,7 @@ local node_config_form = dataform { }; { type = "text-single"; + datatype = "xs:integer"; name = "max_items"; var = "pubsub#max_items"; label = "Max # of items to persist"; -- cgit v1.2.3