Minor fixes and javadocs after review

Set 90 day default for event log
Format clock skew in summary bar
Constant time for password hash check
This commit is contained in:
zzz
2017-11-06 23:45:57 +00:00
parent e281620063
commit 2b8f14f709
10 changed files with 21 additions and 19 deletions

View File

@ -2348,7 +2348,7 @@ public class I2PSnarkServlet extends BasicServlet {
try {
// class only in standalone builds
Class helper = Class.forName("org.klomp.snark.standalone.ConfigUIHelper");
Method getLangSettings = helper.getMethod("getLangSettings", I2PAppContext.class);
Method getLangSettings = helper.getMethod("getLangSettings", new Class[] {I2PAppContext.class});
String langSettings = (String) getLangSettings.invoke(null, _context);
// If we get to here, we have the language settings
out.write("<tr><td>");
@ -3900,6 +3900,7 @@ public class I2PSnarkServlet extends BasicServlet {
_manager.setSavedCommentsEnabled(snark, yes);
}
/** @since 0.9.32 */
private static boolean noCollapsePanels(HttpServletRequest req) {
// check for user agents that can't toggle the collapsible panels...
String ua = req.getHeader("user-agent");