summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-09-26 18:17:31 +0000
committerTed Trask <ttrask01@yahoo.com>2008-09-26 18:17:31 +0000
commit16b68f25144ef6d7150ba098145d231bebdbf7ad (patch)
tree3fa02db9dc965494fc655da2fcb426d761a3a3d9
parent063e634bee5105477d9796d10d224361adbaf6cd (diff)
downloadacf-tinydns-16b68f25144ef6d7150ba098145d231bebdbf7ad.tar.bz2
acf-tinydns-16b68f25144ef6d7150ba098145d231bebdbf7ad.tar.xz
Removed the languages and most error descriptions from validator.lua.
git-svn-id: svn://svn.alpinelinux.org/acf/tinydns/trunk@1534 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r--tinydns-model.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua
index 07a8579..f84b103 100644
--- a/tinydns-model.lua
+++ b/tinydns-model.lua
@@ -293,8 +293,7 @@ end
function createconfigfile(self, configfile, userid)
configfile.errtxt = "Failed to create file"
local path = configfile.value.filename.value
- local validfilepath, filepatherror = validator.is_valid_filename(path,configdir)
- if (validfilepath) then
+ if validator.is_valid_filename(path,configdir) then
if (fs.is_file(path)) then
configfile.value.filename.errtxt = "File already exists"
else
@@ -311,7 +310,7 @@ function createconfigfile(self, configfile, userid)
end
end
else
- configfile.value.filename.errtxt = filepatherror
+ configfile.value.filename.errtxt = "Invalid filename"
end
return configfile