mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix 404 when accessing web UI with the prefix, but without ending /
Thanks, txtsd
This commit is contained in:
@@ -225,6 +225,9 @@ void CHTTPSock::GetPage() {
|
||||
DEBUG("Expected prefix: " << m_sURIPrefix);
|
||||
DEBUG("Requested path: " << m_sURI);
|
||||
Redirect("/");
|
||||
} else if (m_sURI.empty()) {
|
||||
// This can happen if prefix was /foo, and the requested page is /foo
|
||||
Redirect("/");
|
||||
} else {
|
||||
OnPageRequest(m_sURI);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user