Commit 390bba9b authored by Ted Trask's avatar Ted Trask

Fixed bug in fetchmail entry validation.

git-svn-id: svn://svn.alpinelinux.org/acf/fetchmail/trunk@1576 ab2d0c66-481e-0410-8bed-d214d4d58bed
parent 4636b393
......@@ -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 '-'"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment