diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-11-04 13:45:34 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-11-04 13:45:34 +0000 |
commit | 390bba9b065658095dd67366fbc3bff9367ada7c (patch) | |
tree | d15ef1ff4f9c6c8134b076a82f081893f73d07dc | |
parent | 4636b393fa319764eb7547011931b87093fae153 (diff) | |
download | acf-fetchmail-390bba9b065658095dd67366fbc3bff9367ada7c.tar.bz2 acf-fetchmail-390bba9b065658095dd67366fbc3bff9367ada7c.tar.xz |
Fixed bug in fetchmail entry validation.
git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1576 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | fetchmail-model.lua | 3 |
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 '-'" |