aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Help.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-03-08 17:34:53 +0700
committerGravatar Ugnich Anton2014-03-08 17:34:53 +0700
commitd39d1bf69b4de2d8f12d4a7547cd9f7938dc1a52 (patch)
treee0af6f56bce6f4286407855add3709ef3850b147 /src/java/com/juick/http/www/Help.java
parent88f3693c53e70ad064ccc1466ddf27cae98db49a (diff)
Errors.doGet404
Diffstat (limited to 'src/java/com/juick/http/www/Help.java')
-rw-r--r--src/java/com/juick/http/www/Help.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/juick/http/www/Help.java b/src/java/com/juick/http/www/Help.java
index e69b93a7..eed62efa 100644
--- a/src/java/com/juick/http/www/Help.java
+++ b/src/java/com/juick/http/www/Help.java
@@ -43,14 +43,14 @@ public class Help {
String path[] = request.getRequestURI().split("/");
String page;
if (path.length < 3 || path.length > 4 || path[2].length() != 2 || !path[2].matches("^[a-z]+$")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
if (path.length == 4) {
page = path[3];
if (!page.matches("^[a-zA-Z0-9\\-]*$") || page.equals("navigation") || page.equals("index")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
} else {
@@ -59,14 +59,14 @@ public class Help {
File f = new File("/var/www/juick.com/help/" + path[2] + "/" + page);
if (!f.isFile()) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- PageTemplates.pageHead(out, "Помощь", "");
+ PageTemplates.pageHead(out, "Помощь", null);
PageTemplates.pageNavigation(out, visitor, null);
out.println("<aside id=\"column\">");