summaryrefslogtreecommitdiffstats
path: root/weblog-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'weblog-model.lua')
-rw-r--r--weblog-model.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index 0128c47..cd515f7 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -616,8 +616,8 @@ 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, "Log in") then
- logme("Failed to log in to "..source.sourcename)
+ elseif string.find(resultpage, "/acf-util/logon/logon") then
+ logme("Failed to log on to "..source.sourcename)
else
success = true
end