summaryrefslogtreecommitdiffstats
path: root/weblog-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'weblog-model.lua')
-rw-r--r--weblog-model.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index cd515f7..b205c85 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -616,7 +616,7 @@ local connecttosource = function(source, cookiesfile)
local resultpage, errtxt = modelfunctions.run_executable({"wget", "-O", "-", "--no-check-certificate", "--save-cookies", cookiesfile, "--keep-session-cookies", "--post-file", cookiesfile, source.method.."://"..source.source.."/cgi-bin/acf/acf-util/logon/logon"})
if resultpage == "" then
logme("Failed to connect to "..source.sourcename)
- elseif string.find(resultpage, "/acf-util/logon/logon") then
+ elseif string.find(resultpage, "/acf%-util/logon/logon") then
logme("Failed to log on to "..source.sourcename)
else
success = true
@@ -901,11 +901,7 @@ function testsource(self, test)
os.remove(cookiesfile)
-- fix the result
- if test.errtxt then
- test.descr = nil
- else
- test.descr = table.concat(test.descr, "\n") or ""
- end
+ test.descr = table.concat(test.descr, "\n") or ""
logme = temp
return test