mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-17 08:00:34 +02:00
fix edgecase for new variable support
Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
+11
-1
@@ -936,11 +936,21 @@ func (s *Server) checkAndServePhishingPage(
|
||||
s.logger.Debugw("serving before landing page from state",
|
||||
"pageID", pageID.String(),
|
||||
)
|
||||
} else {
|
||||
} else if beforeProxyID != nil {
|
||||
proxyID = beforeProxyID
|
||||
s.logger.Debugw("serving before landing Proxy from state",
|
||||
"proxyID", proxyID.String(),
|
||||
)
|
||||
} else if landingPageID != nil {
|
||||
pageID = landingPageID
|
||||
s.logger.Debugw("before stage no longer configured, falling back to landing page for before state",
|
||||
"pageID", pageID.String(),
|
||||
)
|
||||
} else {
|
||||
proxyID = landingProxyID
|
||||
s.logger.Debugw("before stage no longer configured, falling back to landing Proxy for before state",
|
||||
"proxyID", proxyID.String(),
|
||||
)
|
||||
}
|
||||
currentPageType = data.PAGE_TYPE_BEFORE
|
||||
nextPageType = data.PAGE_TYPE_LANDING
|
||||
|
||||
Reference in New Issue
Block a user