@Override
protected void processTemplate(Request request, Template template) throws RedirectException {
super.processTemplate(request, template);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
if (request.getMethod() == Method.POST) {
String text = request.getHttpRequest().getPartAsStringFailsafe("text", 65536).trim();
if (text.length() != 0) {
super.processTemplate(request, template);
String postId = request.getHttpRequest().getPartAsStringFailsafe("post", 36);
String text = request.getHttpRequest().getPartAsStringFailsafe("text", 65536).trim();
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
if (request.getMethod() == Method.POST) {
Post post = webInterface.getCore().getPost(postId);
if (text.length() > 0) {
return;
} else if (request.getMethod() == Method.POST) {
String postId = request.getHttpRequest().getPartAsStringFailsafe("post", 36);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
Post post = webInterface.getCore().getPost(postId);
Sone currentSone = getCurrentSone(request.getToadletContext());
if (!post.getSone().equals(currentSone)) {
super.processTemplate(request, template);
String replyId = request.getHttpRequest().getPartAsStringFailsafe("reply", 36);
Reply reply = webInterface.getCore().getReply(replyId);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
if (request.getMethod() == Method.POST) {
Sone currentSone = getCurrentSone(request.getToadletContext());
if (!reply.getSone().equals(currentSone)) {
if ((notification != null) && notification.isDismissable()) {
notification.dismiss();
}
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
throw new RedirectException(returnPage);
}
super.processTemplate(request, template);
if (request.getMethod() == Method.POST) {
String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
Sone currentSone = getCurrentSone(request.getToadletContext());
currentSone.addFriend(soneId);
webInterface.getCore().saveSone(currentSone);
if (request.getMethod() == Method.POST) {
String type=request.getHttpRequest().getPartAsStringFailsafe("type", 16);
String id = request.getHttpRequest().getPartAsStringFailsafe(type, 36);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
Sone currentSone = getCurrentSone(request.getToadletContext());
if ("post".equals(type)) {
currentSone.addLikedPostId(id);
if (sone != null) {
webInterface.getCore().lockSone(sone);
}
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
throw new RedirectException(returnPage);
}
super.processTemplate(request, template);
if (request.getMethod() == Method.POST) {
String soneId = request.getHttpRequest().getPartAsStringFailsafe("sone", 44);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
Sone currentSone = getCurrentSone(request.getToadletContext());
currentSone.removeFriend(soneId);
webInterface.getCore().saveSone(currentSone);
if (request.getMethod() == Method.POST) {
String type = request.getHttpRequest().getPartAsStringFailsafe("type", 16);
String id = request.getHttpRequest().getPartAsStringFailsafe(type, 36);
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
Sone currentSone = getCurrentSone(request.getToadletContext());
if ("post".equals(type)) {
currentSone.removeLikedPostId(id);
if (sone != null) {
webInterface.getCore().unlockSone(sone);
}
- String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 64);
+ String returnPage = request.getHttpRequest().getPartAsStringFailsafe("returnPage", 256);
throw new RedirectException(returnPage);
}