forked from I2P_Developers/i2p.i2p
lint core, console, i2ptunnel, jetty
This commit is contained in:
@@ -31,7 +31,7 @@ input.default {
|
||||
<%@include file="formhandler.jsi" %>
|
||||
<div class="configure"><div class="topshimten"><h3><%=uihelper._t("Router Console Theme")%></h3></div>
|
||||
<form action="" method="POST">
|
||||
<input type="hidden" name="consoleNonce" value="<%=intl.getNonce()%>" >
|
||||
<input type="hidden" name="consoleNonce" value="<%=net.i2p.router.web.CSSHelper.getNonce()%>" >
|
||||
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
|
||||
<input type="hidden" name="action" value="blah" >
|
||||
<%
|
||||
|
@@ -10,7 +10,7 @@
|
||||
<%@include file="summaryajax.jsi" %>
|
||||
</head><body onload="initAjax()">
|
||||
<%
|
||||
String consoleNonce = intl.getNonce();
|
||||
String consoleNonce = net.i2p.router.web.CSSHelper.getNonce();
|
||||
%>
|
||||
|
||||
<%@include file="summary.jsi" %>
|
||||
|
@@ -37,7 +37,7 @@
|
||||
}
|
||||
|
||||
String conNonceParam = request.getParameter("consoleNonce");
|
||||
if (intl.getNonce().equals(conNonceParam)) {
|
||||
if (net.i2p.router.web.CSSHelper.getNonce().equals(conNonceParam)) {
|
||||
intl.setLang(request.getParameter("lang"));
|
||||
intl.setNews(request.getParameter("news"));
|
||||
}
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<%@include file="summaryajax.jsi" %>
|
||||
</head><body onload="initAjax()">
|
||||
<%
|
||||
String consoleNonce = intl.getNonce();
|
||||
String consoleNonce = net.i2p.router.web.CSSHelper.getNonce();
|
||||
%>
|
||||
<jsp:useBean class="net.i2p.router.web.NewsHelper" id="newshelper" scope="request" />
|
||||
<jsp:setProperty name="newshelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
|
||||
|
@@ -23,7 +23,7 @@
|
||||
if (!shutdownSoon) {
|
||||
if (d == null || "".equals(d)) {
|
||||
// set below
|
||||
} else if (intl.getNonce().equals(conNonceParam)) {
|
||||
} else if (net.i2p.router.web.CSSHelper.getNonce().equals(conNonceParam)) {
|
||||
d = net.i2p.data.DataHelper.stripHTML(d); // XSS
|
||||
intl.setRefresh(d);
|
||||
intl.setDisableRefresh(d);
|
||||
|
Reference in New Issue
Block a user