import org.cacert.gigi.pages.PolicyRedir;
import org.cacert.gigi.pages.TestSecure;
import org.cacert.gigi.pages.Verify;
+import org.cacert.gigi.pages.account.MailAdd;
import org.cacert.gigi.pages.account.MailCertificates;
import org.cacert.gigi.pages.account.MailOverview;
import org.cacert.gigi.pages.account.MyDetails;
pages.put(PolicyRedir.PATH, new PolicyRedir());
pages.put(MailOverview.DEFAULT_PATH, new MailOverview(
"My email addresses"));
+ pages.put(MailAdd.DEFAULT_PATH, new MailAdd("Add new email"));
String templ = "";
try (BufferedReader reader = new BufferedReader(new InputStreamReader(
new FileInputStream(new File("templates/base.html"))))) {
}
private Page getPage(String pathInfo) {
-
+ if (pathInfo.endsWith("/") && !pathInfo.equals("/")) {
+ pathInfo = pathInfo.substring(0, pathInfo.length() - 1);
+ }
Page page = pages.get(pathInfo);
if (page != null) {
return page;