mirror of
https://github.com/openwrt/luci.git
synced 2026-04-15 19:01:56 +00:00
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 <karlp@etactica.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user