mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Webmods: Only accept "/login"
Nothing uses a "/login/bla"-style URI and thus we shouldn't have to check for it git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1931 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -542,7 +542,7 @@ CWebSock::EPageReqResult CWebSock::OnPageRequestInternal(const CString& sURI, CS
|
||||
|
||||
// We already sent a reply
|
||||
return PAGE_DONE;
|
||||
} else if (sURI == "/login" || sURI.Left(7) == "/login/") {
|
||||
} else if (sURI == "/login") {
|
||||
if (GetParam("submitted").ToBool()) {
|
||||
m_sUser = GetParam("user");
|
||||
m_sPass = GetParam("pass");
|
||||
|
||||
Reference in New Issue
Block a user