forked from I2P_Developers/i2p.i2p
refresh tweaks
another escape html
This commit is contained in:
@ -160,6 +160,7 @@ public class EventLogHelper extends FormHandler {
|
|||||||
String xev = _xevents.get(_event);
|
String xev = _xevents.get(_event);
|
||||||
if (xev == null)
|
if (xev == null)
|
||||||
xev = _event;
|
xev = _event;
|
||||||
|
xev = DataHelper.escapeHTML(xev);
|
||||||
if (events.isEmpty()) {
|
if (events.isEmpty()) {
|
||||||
if (isAll) {
|
if (isAll) {
|
||||||
if (_age == 0)
|
if (_age == 0)
|
||||||
|
@ -17,9 +17,14 @@
|
|||||||
if (d == null || "".equals(d))
|
if (d == null || "".equals(d))
|
||||||
d = intl.getRefresh();
|
d = intl.getRefresh();
|
||||||
else {
|
else {
|
||||||
d = net.i2p.data.DataHelper.stripHTML(d); // XSS
|
long delay;
|
||||||
|
try {
|
||||||
|
delay = Long.parseLong(d);
|
||||||
|
} catch (NumberFormatException nfe) {
|
||||||
|
delay = 60;
|
||||||
|
}
|
||||||
// pass the new delay parameter to the iframe
|
// pass the new delay parameter to the iframe
|
||||||
newDelay = "?refresh=" + d;
|
newDelay = "?refresh=" + delay;
|
||||||
// update disable boolean
|
// update disable boolean
|
||||||
intl.setDisableRefresh(d);
|
intl.setDisableRefresh(d);
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
if (!shutdownSoon) {
|
if (!shutdownSoon) {
|
||||||
if (d == null || "".equals(d)) {
|
if (d == null || "".equals(d)) {
|
||||||
// set below
|
// set below
|
||||||
} else {
|
} else if (intl.getNonce().equals(conNonceParam)) {
|
||||||
d = net.i2p.data.DataHelper.stripHTML(d); // XSS
|
d = net.i2p.data.DataHelper.stripHTML(d); // XSS
|
||||||
intl.setRefresh(d);
|
intl.setRefresh(d);
|
||||||
intl.setDisableRefresh(d);
|
intl.setDisableRefresh(d);
|
||||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
|||||||
/** deprecated */
|
/** deprecated */
|
||||||
public final static String ID = "Monotone";
|
public final static String ID = "Monotone";
|
||||||
public final static String VERSION = CoreVersion.VERSION;
|
public final static String VERSION = CoreVersion.VERSION;
|
||||||
public final static long BUILD = 27;
|
public final static long BUILD = 28;
|
||||||
|
|
||||||
/** for example "-test" */
|
/** for example "-test" */
|
||||||
public final static String EXTRA = "-rc";
|
public final static String EXTRA = "-rc";
|
||||||
|
Reference in New Issue
Block a user