summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2018-09-24 18:08:46 +0200
committerGitHub <noreply@github.com>2018-09-24 18:08:46 +0200
commitb6306b1f49e4974007b7a517a0dd22b3d059af9f (patch)
treeabbf6c315efc6cd1e0005572f6cefe10dd70fa39
parente722ac1807bf9ba704bfaa0b51f971b8aa17a88b (diff)
parent8fdb5f64f2cdb6592e1aefeac9ae9be4fd67bc9c (diff)
Merge pull request #2179 from remakeelectric/mos-path-vs-file
luci-app-mosquitto: validate paths as path, not file
-rw-r--r--applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua4
1 files 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"