summaryrefslogtreecommitdiffstats
path: root/fetchmail-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'fetchmail-model.lua')
-rw-r--r--fetchmail-model.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/fetchmail-model.lua b/fetchmail-model.lua
index 456a12e..7b0e3df 100644
--- a/fetchmail-model.lua
+++ b/fetchmail-model.lua
@@ -212,6 +212,8 @@ local function writeentryline(entrystruct, entryline)
end
local function validateentry(entry)
+ local success = true
+
function cannotbeblank(value)
if value.value == "" then
value.errtxt = "Invalid entry - cannot be blank"
@@ -225,7 +227,6 @@ local function validateentry(entry)
end
end
- local success = true
success = modelfunctions.validateselect(entry.value.method) and success
if string.find(entry.value.remotehost.value, "[^%w.-]") then
entry.value.remotehost.errtxt = "Invalid entry - may only contain alphanumeric, '.', or '-'"