From eaaddf01bb54d506467b78d04afd60dd280aa931 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 25 Apr 2010 12:52:03 +0000 Subject: [PATCH] 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 --- WebModules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebModules.cpp b/WebModules.cpp index f4d988d5..0d5906ff 100644 --- a/WebModules.cpp +++ b/WebModules.cpp @@ -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");