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:
psychon
2010-04-25 12:52:03 +00:00
parent 635fb4bc00
commit eaaddf01bb

View File

@@ -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");