mirror of
https://github.com/znc/znc.git
synced 2026-05-15 05:45:47 +02:00
Use XHTML
This commit is contained in:
@@ -89,7 +89,7 @@
|
||||
|
||||
<div class="subsection">
|
||||
<div class="inputlabel">Flood protection burst:</div>
|
||||
<div><input type="number" name="floodburst" value="<? VAR FloodBurst ?>" min="1" id="floodburst"
|
||||
<div><input type="number" name="floodburst" min="1" id="floodburst"
|
||||
<? IF FloodProtection ?> value="<? VAR FloodBurst ?>" <? ELSE ?> value="4" disabled="disabled" <? ENDIF ?> /> lines can be send immediately</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
|
||||
+6
-5
@@ -432,10 +432,11 @@ bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg
|
||||
}
|
||||
|
||||
CString sPage =
|
||||
"<!DOCTYPE HTML>\r\n"
|
||||
"<html>\r\n"
|
||||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n"
|
||||
"<!DOCTYPE html>\r\n"
|
||||
"<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en\" xml:lang=\"en\">\r\n"
|
||||
"<head>\r\n"
|
||||
"<meta charset=\"utf-8\"/>\r\n"
|
||||
"<meta charset=\"UTF-8\"/>\r\n"
|
||||
"<title>" + CString(uStatusId) + " " + sStatusMsg.Escape_n(CString::EHTML) + "</title>\r\n"
|
||||
"</head>\r\n"
|
||||
"<body>\r\n"
|
||||
@@ -449,7 +450,7 @@ bool CHTTPSock::PrintErrorPage(unsigned int uStatusId, const CString& sStatusMsg
|
||||
"</body>\r\n"
|
||||
"</html>\r\n";
|
||||
|
||||
PrintHeader(sPage.length(), "text/html", uStatusId, sStatusMsg);
|
||||
PrintHeader(sPage.length(), "application/xhtml+xml", uStatusId, sStatusMsg);
|
||||
Write(sPage);
|
||||
Close(Csock::CLT_AFTERWRITE);
|
||||
|
||||
@@ -491,7 +492,7 @@ bool CHTTPSock::PrintHeader(off_t uContentLength, const CString& sContentType, u
|
||||
}
|
||||
|
||||
if (m_sContentType.empty()) {
|
||||
m_sContentType = "text/html";
|
||||
m_sContentType = "application/xhtml+xml";
|
||||
}
|
||||
|
||||
DEBUG("- " << uStatusId << " (" << sStatusMsg << ") [" << m_sContentType << "]");
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<? ADDROW CSSLoop HREF=/skinfiles/_default_/global.css ?>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||||
<meta charset="UTF-8" />
|
||||
<title>ZNC - <? VAR Title DEFAULT="Web Frontend" ?></title>
|
||||
<? LOOP CSSLoop ?>
|
||||
<?IF HREF?><link rel="stylesheet" type="text/css" href="<? VAR HREF ?>" /><?ENDIF?>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<div id="breadcrumb">ZNC
|
||||
<? IF ModName ?><b>»</b> <? VAR ModName ?><? ENDIF ?>
|
||||
<? REM ?><? IF PageName ?><b>»</b> <? VAR PageName ?><? ENDIF ?><? ENDREM ?>
|
||||
<? IF Title && Title != *ModName ?><b>»</b> <? VAR Title ?><? ENDIF ?>
|
||||
<? IF ModName ?><b>»</b> <? VAR ModName ?><? ENDIF ?>
|
||||
<? REM ?><? IF PageName ?><b>»</b> <? VAR PageName ?><? ENDIF ?><? ENDREM ?>
|
||||
<? IF Title && Title != *ModName ?><b>»</b> <? VAR Title ?><? ENDIF ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user