summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2013-05-31 02:13:23 +0000
committerTed Trask <ttrask01@yahoo.com>2013-05-31 02:13:23 +0000
commit70c138e43c35d9c56bab89c9d2f953c9ba9be64e (patch)
tree6aa0a3ea7746cb0f8126cd4886fb7c0f9227ca37
parent89675a84c933526e90771e4c8024c22657519ec7 (diff)
downloadacf-weblog-70c138e43c35d9c56bab89c9d2f953c9ba9be64e.tar.bz2
acf-weblog-70c138e43c35d9c56bab89c9d2f953c9ba9be64e.tar.xz
Change the search string for logon failure
-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