From 3859c9616d0a7a04e68427d173b863161b818140 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 20 Dec 2016 14:28:00 +0300 Subject: StringUtils.EMPTY --- juick-api/src/main/java/com/juick/api/controllers/Post.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-api/src/main/java/com/juick/api/controllers') diff --git a/juick-api/src/main/java/com/juick/api/controllers/Post.java b/juick-api/src/main/java/com/juick/api/controllers/Post.java index 853a60ff9..0c93fb7bc 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Post.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Post.java @@ -65,7 +65,7 @@ public class Post { if (body == null || body.length() < 1 || body.length() > 4096) { throw new HttpBadRequestException(); } - body = body.replace("\r", ""); + body = body.replace("\r", StringUtils.EMPTY); String attachmentFName = HttpUtils.receiveMultiPartFile(attach, env.getProperty("upload_tmp_dir", "/var/www/juick.com/i/tmp/")); @@ -129,7 +129,7 @@ public class Post { if (body == null || body.length() < 1 || body.length() > 4096) { throw new HttpBadRequestException(); } - body = body.replace("\r", ""); + body = body.replace("\r", StringUtils.EMPTY); if ((msg.ReadOnly && msg.getUser().getUid() != vuid) || userService.isInBLAny(msg.getUser().getUid(), vuid) || (reply != null && userService.isInBLAny(reply.getUser().getUid(), vuid))) { -- cgit v1.2.3