From 8fdb5f64f2cdb6592e1aefeac9ae9be4fd67bc9c Mon Sep 17 00:00:00 2001 From: Karl Palsson Date: Mon, 24 Sep 2018 16:00:52 +0000 Subject: [PATCH] luci-app-mosquitto: validate paths as path, not file luci has separate validation for directories and files, make sure to use the right one. Signed-off-by: Karl Palsson --- .../luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua b/applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua index 78bc9f071..4b7582a19 100644 --- a/applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua +++ b/applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua @@ -104,7 +104,7 @@ o.optional = true o.datatype = "file" o = s:option(Value, "capath", "CA path to search") o.optional = true -o.datatype = "file" +o.datatype = "directory" o = s:option(Value, "certfile", "server certificate file (PEM encoded)") o.optional = true o.datatype = "file" @@ -218,7 +218,7 @@ o.optional = true o.datatype = "file" o = s:option(Value, "capath", "Directory to search for CA files") o.optional = true -o.datatype = "file" +o.datatype = "directory" o = s:option(Value, "certfile", "Path to PEM encoded server certificate file") o.optional = true o.datatype = "file" -- 2.25.1