mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Delay switch to XHTML until user encodings are implemented...
Webadmin is broken now with non-UTF8 channel names and usernames.
This commit is contained in:
+2
-2
@@ -450,7 +450,7 @@ bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg
|
||||
"</body>\r\n"
|
||||
"</html>\r\n";
|
||||
|
||||
PrintHeader(sPage.length(), "application/xhtml+xml; charset=utf-8", uStatusId, sStatusMsg);
|
||||
PrintHeader(sPage.length(), "text/html; charset=utf-8", uStatusId, sStatusMsg);
|
||||
Write(sPage);
|
||||
Close(Csock::CLT_AFTERWRITE);
|
||||
|
||||
@@ -492,7 +492,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, u
|
||||
}
|
||||
|
||||
if (m_sContentType.empty()) {
|
||||
m_sContentType = "application/xhtml+xml; charset=utf-8";
|
||||
m_sContentType = "text/html; charset=utf-8";
|
||||
}
|
||||
|
||||
DEBUG("- " << uStatusId << " (" << sStatusMsg << ") [" << m_sContentType << "]");
|
||||
|
||||
Reference in New Issue
Block a user