From 390bba9b065658095dd67366fbc3bff9367ada7c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 4 Nov 2008 13:45:34 +0000 Subject: Fixed bug in fetchmail entry validation. git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1576 ab2d0c66-481e-0410-8bed-d214d4d58bed --- fetchmail-model.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 '-'" -- cgit v1.2.3