aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/http/www/NewMessage.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/juick/http/www/NewMessage.java b/src/main/java/com/juick/http/www/NewMessage.java
index d6ef22ee..4d31ee14 100644
--- a/src/main/java/com/juick/http/www/NewMessage.java
+++ b/src/main/java/com/juick/http/www/NewMessage.java
@@ -170,7 +170,7 @@ public class NewMessage {
}
String paramImg = request.getParameter("img");
- if (attachmentFName == null && paramImg != null) {
+ if (attachmentFName == null && paramImg != null && paramImg.length() > 10 ) {
try {
URL imgUrl = new URL(paramImg);
attachmentFName = Utils.downloadImage(imgUrl);
@@ -328,7 +328,7 @@ public class NewMessage {
}
String paramImg = request.getParameter("img");
- if (attachmentFName == null && paramImg != null) {
+ if (attachmentFName == null && paramImg != null && paramImg.length() > 10) {
try {
attachmentFName = Utils.downloadImage(new URL(paramImg));
} catch (Exception e) {