diff options
Diffstat (limited to 'src/java/com/juick/http/www/NewMessage.java')
-rw-r--r-- | src/java/com/juick/http/www/NewMessage.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/NewMessage.java b/src/java/com/juick/http/www/NewMessage.java index fb5e6784..4bb87404 100644 --- a/src/java/com/juick/http/www/NewMessage.java +++ b/src/java/com/juick/http/www/NewMessage.java @@ -143,6 +143,7 @@ public class NewMessage { response.sendError(400); return; } + body = body.replace("\r", ""); String tagsStr = request.getParameter("tags"); if (tagsStr == null || tagsStr.isEmpty()) { @@ -171,6 +172,7 @@ public class NewMessage { try { attachmentFName = Utils.receiveMultiPartFile(request, "attach"); } catch (Exception e) { + System.out.println("MULTIPART ERROR: " + e.toString()); response.sendError(400); return; } @@ -269,6 +271,7 @@ public class NewMessage { response.sendError(400); return; } + body = body.replace("\r", ""); if ((msg.ReadOnly && msg.User.UID != visitor.UID) || UserQueries.isInBLAny(sql, msg.User.UID, visitor.UID) || (reply != null && UserQueries.isInBLAny(sql, reply.User.UID, visitor.UID))) { response.sendError(403); @@ -279,6 +282,7 @@ public class NewMessage { try { attachmentFName = Utils.receiveMultiPartFile(request, "attach"); } catch (Exception e) { + System.out.println("MULTIPART ERROR: " + e.toString()); response.sendError(400); return; } |